diff options
author | Bitao Hu <yaoma@linux.alibaba.com> | 2024-04-11 15:41:30 +0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-04-12 17:08:05 +0200 |
commit | 86d2a2f51fbada84e377665df06b5a479a1edc99 (patch) | |
tree | 4d4841bbc3a1d129a8cc9d6793bb19fb52553720 /arch/mips/dec | |
parent | 81e4cb0fd45c84d416e3edffbf6ae62c89ce6b5a (diff) | |
download | linux-86d2a2f51fbada84e377665df06b5a479a1edc99.tar.gz linux-86d2a2f51fbada84e377665df06b5a479a1edc99.tar.bz2 linux-86d2a2f51fbada84e377665df06b5a479a1edc99.zip |
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
Diffstat (limited to 'arch/mips/dec')
-rw-r--r-- | arch/mips/dec/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/dec/setup.c b/arch/mips/dec/setup.c index 6c3704f51d0d..87f0a1436bf9 100644 --- a/arch/mips/dec/setup.c +++ b/arch/mips/dec/setup.c @@ -756,7 +756,7 @@ void __init arch_init_irq(void) NULL)) pr_err("Failed to register fpu interrupt\n"); desc_fpu = irq_to_desc(irq_fpu); - fpu_kstat_irq = this_cpu_ptr(desc_fpu->kstat_irqs); + fpu_kstat_irq = this_cpu_ptr(&desc_fpu->kstat_irqs->cnt); } if (dec_interrupt[DEC_IRQ_CASCADE] >= 0) { if (request_irq(dec_interrupt[DEC_IRQ_CASCADE], no_action, |