Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20201113141733.501611990@linutronix.de

+3
+3
include/asm-generic/hardirq.h
··· 7 7 8 8 typedef struct { 9 9 unsigned int __softirq_pending; 10 + #ifdef ARCH_WANTS_NMI_IRQSTAT 11 + unsigned int __nmi_count; 12 + #endif 10 13 } ____cacheline_aligned irq_cpustat_t; 11 14 12 15 #include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */