Re: [patch v2 05/14] genirq: Expose nr_irqs in core code

From: Thomas Gleixner

Date: Mon Mar 23 2026 - 17:27:48 EST


On Mon, Mar 23 2026 at 15:48, Radu Rendec wrote:
> On Fri, 2026-03-20 at 14:21 +0100, Thomas Gleixner wrote:
>>  #ifndef ACTUAL_NR_IRQS
>> -# define ACTUAL_NR_IRQS irq_get_nr_irqs()
>> +# define ACTUAL_NR_IRQS total_nr_irqs
>>  #endif
>>  
>>  #define ZSTR1 "          0"
>
> Nit: This is modified again in the next patch, so it doesn't matter.
> But for the purpose of this patch in isolation, looking at where
> ACTUAL_NR_IRQS is used, in show_interrupts() the nr_irqs variable
> should also be initialized to total_nr_irqs to avoid the extra function
> call.

Indeed.