aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/hardirq.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/hardirq.h')
-rw-r--r--arch/powerpc/include/asm/hardirq.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/hardirq.h b/arch/powerpc/include/asm/hardirq.h
index fb3c05a0cbbf..9bf3467581b1 100644
--- a/arch/powerpc/include/asm/hardirq.h
+++ b/arch/powerpc/include/asm/hardirq.h
@@ -1 +1,22 @@
1#include <asm-generic/hardirq.h> 1#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;
9} ____cacheline_aligned irq_cpustat_t;
10
11DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
12
13#define __ARCH_IRQ_STAT
14
15#define local_softirq_pending() __get_cpu_var(irq_stat).__softirq_pending
16
17static inline void ack_bad_irq(unsigned int irq)
18{
19 printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
20}
21
22#endif /* _ASM_POWERPC_HARDIRQ_H */