[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>
This commit is contained in:
parent
5f7c690728
commit
7da8f8600a
3 changed files with 0 additions and 154 deletions
|
|
@ -10,12 +10,8 @@
|
|||
|
||||
extern void timer_interrupt(struct pt_regs *);
|
||||
|
||||
#define INLINE_IRQS
|
||||
|
||||
#define irqs_disabled() ((mfmsr() & MSR_EE) == 0)
|
||||
|
||||
#ifdef INLINE_IRQS
|
||||
|
||||
static inline void local_irq_disable(void)
|
||||
{
|
||||
unsigned long msr;
|
||||
|
|
@ -45,18 +41,6 @@ static inline void local_irq_save_ptr(unsigned long *flags)
|
|||
#define local_irq_save(flags) local_irq_save_ptr(&flags)
|
||||
#define local_irq_restore(flags) mtmsr(flags)
|
||||
|
||||
#else
|
||||
|
||||
extern void local_irq_enable(void);
|
||||
extern void local_irq_disable(void);
|
||||
extern void local_irq_restore(unsigned long);
|
||||
extern void local_save_flags_ptr(unsigned long *);
|
||||
|
||||
#define local_save_flags(flags) local_save_flags_ptr(&flags)
|
||||
#define local_irq_save(flags) ({local_save_flags(flags);local_irq_disable();})
|
||||
|
||||
#endif
|
||||
|
||||
extern void do_lost_interrupts(unsigned long);
|
||||
|
||||
#define mask_irq(irq) ({if (irq_desc[irq].handler && irq_desc[irq].handler->disable) irq_desc[irq].handler->disable(irq);})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue