[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMOZA0+9WJyxCRs7-PTDEet4zbus=7Pfmh8o1ibQ2XfFnc19uA@mail.gmail.com>
Date: Mon, 12 Jan 2026 09:33:54 +0100
From: Luigi Rizzo <lrizzo@...gle.com>
To: tglx@...utronix.de, maz@...nel.org
Cc: edumazet@...gle.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] genirq: move clear of kstat_irqs to free_desc()
On Sun, Jan 11, 2026 at 8:17 PM Luigi Rizzo <lrizzo@...gle.com> wrote:
>
> desc_set_defaults() has a loop to clear the per-cpu counters kstats_irq.
>
> This is only needed in free_desc(), which is used with non-sparse IRQs
> so that the irq_desc can be recycled. For newly allocated irq_desc,
> the memory comes from alloc_percpu() and is already zeroed out.
>
> Move the loop to free_desc() to avoid wasting time unnecessarily.
...
ah I forgot to move the "int cpu;" line, just sent a corrected [PATCH v2]
cheers
luigi
Powered by blists - more mailing lists