summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@kernel.org>2026-05-17 23:02:09 +0300
committerThomas Gleixner <tglx@kernel.org>2026-05-26 17:21:13 +0300
commitb99dc723b12ea587fc8b2e07bd8401433eec58d8 (patch)
tree7e764574834092797e50a5178ccae547faac2786 /scripts
parentcca5e6fa791bdf84f716ae92604d8330a6b6411a (diff)
downloadlinux-b99dc723b12ea587fc8b2e07bd8401433eec58d8.tar.xz
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
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gdb/linux/interrupts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gdb/linux/interrupts.py b/scripts/gdb/linux/interrupts.py
index b794e013c360..a4e25d2bf123 100644
--- a/scripts/gdb/linux/interrupts.py
+++ b/scripts/gdb/linux/interrupts.py
@@ -174,7 +174,7 @@ class LxInterruptList(gdb.Command):
super(LxInterruptList, self).__init__("lx-interruptlist", gdb.COMMAND_DATA)
def invoke(self, arg, from_tty):
- nr_irqs = gdb.parse_and_eval("nr_irqs")
+ nr_irqs = gdb.parse_and_eval("total_nr_irqs")
prec = 3
j = 1000
while prec < 10 and j <= nr_irqs: