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

sh: irqstat: Use the generic irq_cpustat_t

SH can now use the generic irq_cpustat_t. Define ack_bad_irq so the generic
header does not emit the generic version of it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20201113141733.625146223@linutronix.de

+4 -10
+4 -10
arch/sh/include/asm/hardirq.h
··· 2 2 #ifndef __ASM_SH_HARDIRQ_H 3 3 #define __ASM_SH_HARDIRQ_H 4 4 5 - #include <linux/threads.h> 6 - #include <linux/irq.h> 7 - 8 - typedef struct { 9 - unsigned int __softirq_pending; 10 - unsigned int __nmi_count; /* arch dependent */ 11 - } ____cacheline_aligned irq_cpustat_t; 12 - 13 - #include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */ 14 - 15 5 extern void ack_bad_irq(unsigned int irq); 6 + #define ack_bad_irq ack_bad_irq 7 + #define ARCH_WANTS_NMI_IRQSTAT 8 + 9 + #include <asm-generic/hardirq.h> 16 10 17 11 #endif /* __ASM_SH_HARDIRQ_H */