1 #ifndef _ASM_POWERPC_HARDIRQ_H
2 #define _ASM_POWERPC_HARDIRQ_H
4 #include <linux/threads.h>
8 unsigned int __softirq_pending
;
9 unsigned int timer_irqs_event
;
10 unsigned int timer_irqs_others
;
11 unsigned int pmu_irqs
;
12 unsigned int mce_exceptions
;
13 unsigned int spurious_irqs
;
14 #ifdef CONFIG_PPC_DOORBELL
15 unsigned int doorbell_irqs
;
17 } ____cacheline_aligned irq_cpustat_t
;
19 DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t
, irq_stat
);
21 #define __ARCH_IRQ_STAT
23 #define local_softirq_pending() __get_cpu_var(irq_stat).__softirq_pending
25 static inline void ack_bad_irq(unsigned int irq
)
27 printk(KERN_CRIT
"unexpected IRQ trap at vector %02x\n", irq
);
30 extern u64
arch_irq_stat_cpu(unsigned int cpu
);
31 #define arch_irq_stat_cpu arch_irq_stat_cpu
33 #endif /* _ASM_POWERPC_HARDIRQ_H */