diff options
author | 2018-06-20 08:03:32 -0700 | |
---|---|---|
committer | 2018-06-22 14:22:58 +0200 | |
commit | 74bdf7815dfb3805a37b0bba615814063a227bf5 (patch) | |
tree | 7057de945fe8629787d7f7767ff11c905157c5af /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | genirq: Fix editing error in a comment (diff) | |
download | wireguard-linux-74bdf7815dfb3805a37b0bba615814063a227bf5.tar.xz wireguard-linux-74bdf7815dfb3805a37b0bba615814063a227bf5.zip |
genirq: Speedup show_interrupts()
Since commit 425a5072dcd1 ("genirq: Free irq_desc with rcu"),
show_interrupts() can be switched to rcu locking, which removes possible
contention on sparse_irq_lock.
The per_cpu count scan and print can be done without holding desc spinlock.
And there is no need to call kstat_irqs_cpu() and abuse irq_to_desc() while
holding rcu read lock, since desc and desc->kstat_irqs wont disappear or
change.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Link: https://lkml.kernel.org/r/20180620150332.163320-1-edumazet@google.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions