powerpc: Reduce footprint of irq_stat
[linux-2.6/cjktty.git] / arch / powerpc / include / asm / hardirq.h
blob9bf3467581b1a0e6b14938aba8b080616d9bf962
1 #ifndef _ASM_POWERPC_HARDIRQ_H
2 #define _ASM_POWERPC_HARDIRQ_H
4 #include <linux/threads.h>
5 #include <linux/irq.h>
7 typedef struct {
8 unsigned int __softirq_pending;
9 } ____cacheline_aligned irq_cpustat_t;
11 DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
13 #define __ARCH_IRQ_STAT
15 #define local_softirq_pending() __get_cpu_var(irq_stat).__softirq_pending
17 static inline void ack_bad_irq(unsigned int irq)
19 printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
22 #endif /* _ASM_POWERPC_HARDIRQ_H */