genirq: Convert kstat_irqs to a struct
authorBitao Hu <yaoma@linux.alibaba.com>
Thu, 11 Apr 2024 07:41:30 +0000 (15:41 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 12 Apr 2024 15:08:05 +0000 (17:08 +0200)
commit86d2a2f51fbada84e377665df06b5a479a1edc99
tree4d4841bbc3a1d129a8cc9d6793bb19fb52553720
parent81e4cb0fd45c84d416e3edffbf6ae62c89ce6b5a
genirq: Convert kstat_irqs to a struct

The irq_desc::kstat_irqs member is a per-CPU variable of type int, which is
only capable of counting. A snapshot mechanism for interrupt statistics
will be added soon, which requires an additional variable to store the
snapshot.

To facilitate expansion, convert kstat_irqs here to a struct containing
only the count.

Originally-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Bitao Hu <yaoma@linux.alibaba.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240411074134.30922-2-yaoma@linux.alibaba.com
arch/mips/dec/setup.c
arch/parisc/kernel/smp.c
arch/powerpc/kvm/book3s_hv_rm_xics.c
include/linux/irqdesc.h
kernel/irq/internals.h
kernel/irq/irqdesc.c
kernel/irq/proc.c
scripts/gdb/linux/interrupts.py