genirq: Provide kstat_irqdesc_cpu()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 10 Dec 2020 19:25:44 +0000 (20:25 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Dec 2020 15:19:31 +0000 (16:19 +0100)
commit501e2db67fa4264b517de5c7934e94cca89b3a1e
treedc656c09981d9fcaef2bd9cc6889d9e9e124c505
parent26c19d0a8610fb233b31730fe26a31145f2d9796
genirq: Provide kstat_irqdesc_cpu()

Most users of kstat_irqs_cpu() have the irq descriptor already. No point in
calling into the core code and looking it up once more.

Use it in per_cpu_count_show() to start with.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201210194043.362094758@linutronix.de
include/linux/irqdesc.h
kernel/irq/irqdesc.c