diff options
author | Bart Van Assche <bvanassche@acm.org> | 2024-10-15 12:09:52 -0700 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-10-16 21:56:59 +0200 |
commit | 1ad2048bf7146efb83bc033147ca1611a7fe8494 (patch) | |
tree | af3b86fae07871cfe8d621d777bf9cd23f942360 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | f4dd946c775e85e4f9aa460cd3dba197c35e43f1 (diff) |
genirq: Switch to irq_get_nr_irqs()
Use the irq_get_nr_irqs() function instead of the global variable
'nr_irqs'. Cache the result of this function in a local variable in
order not to rely on CSE (common subexpression elimination). Prepare
for changing 'nr_irqs' from an exported global variable into a variable
with file scope.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241015190953.1266194-22-bvanassche@acm.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions