diff options
Diffstat (limited to 'include/asm-ppc/hw_irq.h')
-rw-r--r-- | include/asm-ppc/hw_irq.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/asm-ppc/hw_irq.h b/include/asm-ppc/hw_irq.h index 47dc7990fb26..51a1d7ef5253 100644 --- a/include/asm-ppc/hw_irq.h +++ b/include/asm-ppc/hw_irq.h | |||
@@ -10,12 +10,8 @@ | |||
10 | 10 | ||
11 | extern void timer_interrupt(struct pt_regs *); | 11 | extern void timer_interrupt(struct pt_regs *); |
12 | 12 | ||
13 | #define INLINE_IRQS | ||
14 | |||
15 | #define irqs_disabled() ((mfmsr() & MSR_EE) == 0) | 13 | #define irqs_disabled() ((mfmsr() & MSR_EE) == 0) |
16 | 14 | ||
17 | #ifdef INLINE_IRQS | ||
18 | |||
19 | static inline void local_irq_disable(void) | 15 | static inline void local_irq_disable(void) |
20 | { | 16 | { |
21 | unsigned long msr; | 17 | unsigned long msr; |
@@ -45,18 +41,6 @@ static inline void local_irq_save_ptr(unsigned long *flags) | |||
45 | #define local_irq_save(flags) local_irq_save_ptr(&flags) | 41 | #define local_irq_save(flags) local_irq_save_ptr(&flags) |
46 | #define local_irq_restore(flags) mtmsr(flags) | 42 | #define local_irq_restore(flags) mtmsr(flags) |
47 | 43 | ||
48 | #else | ||
49 | |||
50 | extern void local_irq_enable(void); | ||
51 | extern void local_irq_disable(void); | ||
52 | extern void local_irq_restore(unsigned long); | ||
53 | extern void local_save_flags_ptr(unsigned long *); | ||
54 | |||
55 | #define local_save_flags(flags) local_save_flags_ptr(&flags) | ||
56 | #define local_irq_save(flags) ({local_save_flags(flags);local_irq_disable();}) | ||
57 | |||
58 | #endif | ||
59 | |||
60 | extern void do_lost_interrupts(unsigned long); | 44 | extern void do_lost_interrupts(unsigned long); |
61 | 45 | ||
62 | #define mask_irq(irq) ({if (irq_desc[irq].handler && irq_desc[irq].handler->disable) irq_desc[irq].handler->disable(irq);}) | 46 | #define mask_irq(irq) ({if (irq_desc[irq].handler && irq_desc[irq].handler->disable) irq_desc[irq].handler->disable(irq);}) |