summaryrefslogtreecommitdiff
path: root/include/asm-generic/hardirq.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-11-13 17:02:14 +0300
committerThomas Gleixner <tglx@linutronix.de>2020-11-23 12:31:06 +0300
commit1adb99eabce9deefb55985c19181d375ba6ff4aa (patch)
tree97213209e2db8b575d8b52d5200c9391134209f3 /include/asm-generic/hardirq.h
parent2cb0837e56e1b04b773ed05df72297de4e010063 (diff)
downloadlinux-1adb99eabce9deefb55985c19181d375ba6ff4aa.tar.xz
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
Diffstat (limited to 'include/asm-generic/hardirq.h')
-rw-r--r--include/asm-generic/hardirq.h3
1 files changed, 3 insertions, 0 deletions
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 <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */