drm/radeon/kms: fix sideport detection on newer rs880 boards
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / powerpc / include / asm / hardirq.h
blob3147a29701254eb882bbd1995f03b862e2e6c4e1
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 unsigned int timer_irqs;
10 unsigned int pmu_irqs;
11 unsigned int mce_exceptions;
12 unsigned int spurious_irqs;
13 } ____cacheline_aligned irq_cpustat_t;
15 DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
17 #define __ARCH_IRQ_STAT
19 #define local_softirq_pending() __get_cpu_var(irq_stat).__softirq_pending
21 static inline void ack_bad_irq(unsigned int irq)
23 printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
26 extern u64 arch_irq_stat_cpu(unsigned int cpu);
27 #define arch_irq_stat_cpu arch_irq_stat_cpu
29 #endif /* _ASM_POWERPC_HARDIRQ_H */