]> git.ipfire.org Git - thirdparty/linux.git/commit
genirq: Expose nr_irqs in core code
authorThomas Gleixner <tglx@kernel.org>
Sun, 17 May 2026 20:02:09 +0000 (22:02 +0200)
committerThomas Gleixner <tglx@kernel.org>
Tue, 26 May 2026 14:21:13 +0000 (16:21 +0200)
commitb99dc723b12ea587fc8b2e07bd8401433eec58d8
tree7e764574834092797e50a5178ccae547faac2786
parentcca5e6fa791bdf84f716ae92604d8330a6b6411a
genirq: Expose nr_irqs in core code

... to avoid function calls in the core code to retrieve the maximum number
of interrupts.

Rename it to 'total_nr_irqs' as 'nr_irqs' is too generic and fix up the
'nr_irqs' reference in the related GDB script as well.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Dmitry Ilvokhin <d@ilvokhin.com>
Reviewed-by: Radu Rendec <radu@rendec.net>
Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Link: https://patch.msgid.link/20260517194931.522168332@kernel.org
kernel/irq/internals.h
kernel/irq/irqdesc.c
kernel/irq/proc.c
scripts/gdb/linux/interrupts.py