aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2023-07-24 17:40:40 -0700
committerBartosz Golaszewski <[email protected]>2023-07-25 12:00:15 +0200
commit1cd9cee75f99cfe31a6e339af518679649812838 (patch)
tree9874f25c4bcb6b4b82672aed0b07c1ae3b13d536 /tools/perf/scripts/python/export-to-sqlite.py
parent5d472a7ef0f35e39906ef0eafa0c76727949f56b (diff)
gpio: sifive: Look up IRQs only once during probe
of_irq_count(), or eqivalently platform_irq_count(), simply looks up successively-numbered IRQs until that fails. Since this driver needs to look up each IRQ anyway to get its virq number, use that existing loop to count the IRQs at the same time. The check against SIFIVE_GPIO_MAX functioned as a bounds check for chip->irq_number. That is now handled by the loop condition. Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions