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
This commit is contained in:
Thomas Gleixner 2020-12-10 20:25:44 +01:00
commit 501e2db67f
2 changed files with 8 additions and 2 deletions