blob: 3147a29701254eb882bbd1995f03b862e2e6c4e1 [file] [log] [blame]
Anton Blanchard8c007bf2010-01-31 20:30:23 +00001#ifndef _ASM_POWERPC_HARDIRQ_H
2#define _ASM_POWERPC_HARDIRQ_H
3
4#include <linux/threads.h>
5#include <linux/irq.h>
6
7typedef struct {
8 unsigned int __softirq_pending;
Anton Blanchard89713ed2010-01-31 20:34:06 +00009 unsigned int timer_irqs;
10 unsigned int pmu_irqs;
11 unsigned int mce_exceptions;
Anton Blanchard17081102010-01-31 20:34:36 +000012 unsigned int spurious_irqs;
Anton Blanchard8c007bf2010-01-31 20:30:23 +000013} ____cacheline_aligned irq_cpustat_t;
14
15DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
16
17#define __ARCH_IRQ_STAT
18
19#define local_softirq_pending() __get_cpu_var(irq_stat).__softirq_pending
20
21static inline void ack_bad_irq(unsigned int irq)
22{
23 printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
24}
25
Anton Blanchard89713ed2010-01-31 20:34:06 +000026extern u64 arch_irq_stat_cpu(unsigned int cpu);
27#define arch_irq_stat_cpu arch_irq_stat_cpu
28
Anton Blanchard8c007bf2010-01-31 20:30:23 +000029#endif /* _ASM_POWERPC_HARDIRQ_H */