Anton Blanchard | 8c007bf | 2010-01-31 20:30:23 +0000 | [diff] [blame] | 1 | #ifndef _ASM_POWERPC_HARDIRQ_H |
| 2 | #define _ASM_POWERPC_HARDIRQ_H |
| 3 | |
| 4 | #include <linux/threads.h> |
| 5 | #include <linux/irq.h> |
| 6 | |
| 7 | typedef struct { |
| 8 | unsigned int __softirq_pending; |
Anton Blanchard | 89713ed | 2010-01-31 20:34:06 +0000 | [diff] [blame^] | 9 | unsigned int timer_irqs; |
| 10 | unsigned int pmu_irqs; |
| 11 | unsigned int mce_exceptions; |
Anton Blanchard | 8c007bf | 2010-01-31 20:30:23 +0000 | [diff] [blame] | 12 | } ____cacheline_aligned irq_cpustat_t; |
| 13 | |
| 14 | DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat); |
| 15 | |
| 16 | #define __ARCH_IRQ_STAT |
| 17 | |
| 18 | #define local_softirq_pending() __get_cpu_var(irq_stat).__softirq_pending |
| 19 | |
| 20 | static inline void ack_bad_irq(unsigned int irq) |
| 21 | { |
| 22 | printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq); |
| 23 | } |
| 24 | |
Anton Blanchard | 89713ed | 2010-01-31 20:34:06 +0000 | [diff] [blame^] | 25 | extern u64 arch_irq_stat_cpu(unsigned int cpu); |
| 26 | #define arch_irq_stat_cpu arch_irq_stat_cpu |
| 27 | |
| 28 | extern u64 arch_irq_stat(void); |
| 29 | #define arch_irq_stat arch_irq_stat |
| 30 | |
Anton Blanchard | 8c007bf | 2010-01-31 20:30:23 +0000 | [diff] [blame] | 31 | #endif /* _ASM_POWERPC_HARDIRQ_H */ |