aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/hw_irq.h
diff options
context:
space:
mode:
authorKumar Gala <galak@freescale.com>2005-09-16 12:37:33 -0400
committerPaul Mackerras <paulus@samba.org>2005-09-18 19:38:49 -0400
commit7da8f8600a4751d7f0248e00d973901b7371fabc (patch)
tree0d46a5b29121878eb8452d4b1930109ff2f63741 /include/asm-ppc/hw_irq.h
parent5f7c690728ace1404f72d74972dcc261674c0dd4 (diff)
[PATCH] ppc32: Removed non-inlined versions of local_irq* functions
We always use the inlined versions of local_irq_enable, local_irq_disable, local_save_flags_ptr, and local_irq_restore on ppc32 so the non-inlined versions where just taking up space. Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc/hw_irq.h')
-rw-r--r--include/asm-ppc/hw_irq.h16
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
11extern void timer_interrupt(struct pt_regs *); 11extern 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
19static inline void local_irq_disable(void) 15static 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
50extern void local_irq_enable(void);
51extern void local_irq_disable(void);
52extern void local_irq_restore(unsigned long);
53extern 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
60extern void do_lost_interrupts(unsigned long); 44extern 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);})