This plugs in support for NMI counting per-CPU via irq_cpustat_t. Modelled after the x86 implementation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			401 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			401 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef __ASM_SH_HARDIRQ_H
 | 
						|
#define __ASM_SH_HARDIRQ_H
 | 
						|
 | 
						|
#include <linux/threads.h>
 | 
						|
#include <linux/irq.h>
 | 
						|
 | 
						|
typedef struct {
 | 
						|
	unsigned int __softirq_pending;
 | 
						|
	unsigned int __nmi_count;		/* arch dependent */
 | 
						|
} ____cacheline_aligned irq_cpustat_t;
 | 
						|
 | 
						|
#include <linux/irq_cpustat.h>	/* Standard mappings for irq_cpustat_t above */
 | 
						|
 | 
						|
extern void ack_bad_irq(unsigned int irq);
 | 
						|
 | 
						|
#endif /* __ASM_SH_HARDIRQ_H */
 |