From: Thomas Gleixner Date: Fri, 13 Nov 2020 14:02:14 +0000 (+0100) Subject: asm-generic/irqstat: Add optional __nmi_count member X-Git-Tag: microblaze-v5.12~24^2~42 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=1adb99eabce9deefb55985c19181d375ba6ff4aa;p=linux-2.6-microblaze.git asm-generic/irqstat: Add optional __nmi_count member Add an optional __nmi_count member to irq_cpustat_t so more architectures can use the generic version. Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker Link: https://lore.kernel.org/r/20201113141733.501611990@linutronix.de --- diff --git a/include/asm-generic/hardirq.h b/include/asm-generic/hardirq.h index d14214dfc10b..f5dd99781e3c 100644 --- a/include/asm-generic/hardirq.h +++ b/include/asm-generic/hardirq.h @@ -7,6 +7,9 @@ typedef struct { unsigned int __softirq_pending; +#ifdef ARCH_WANTS_NMI_IRQSTAT + unsigned int __nmi_count; +#endif } ____cacheline_aligned irq_cpustat_t; #include /* Standard mappings for irq_cpustat_t above */