Skip to content

Commit

Permalink
[POWERPC] Delete unused irq functions on powerpc
Browse files Browse the repository at this point in the history
The ack_irq macro is unused and conflicts with James' work to template
the generic irq code.  mask_irq and unmask_irq are also unused, so delete
those macros too.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Matthew Wilcox authored and Paul Mackerras committed Dec 8, 2006
1 parent 1d4454e commit 3a1d1ac
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions include/asm-powerpc/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,25 +107,6 @@ static inline void local_irq_save_ptr(unsigned long *flags)

#endif /* CONFIG_PPC64 */

#define mask_irq(irq) \
({ \
irq_desc_t *desc = get_irq_desc(irq); \
if (desc->chip && desc->chip->disable) \
desc->chip->disable(irq); \
})
#define unmask_irq(irq) \
({ \
irq_desc_t *desc = get_irq_desc(irq); \
if (desc->chip && desc->chip->enable) \
desc->chip->enable(irq); \
})
#define ack_irq(irq) \
({ \
irq_desc_t *desc = get_irq_desc(irq); \
if (desc->chip && desc->chip->ack) \
desc->chip->ack(irq); \
})

/*
* interrupt-retrigger: should we handle this via lost interrupts and IPIs
* or should we not care like we do now ? --BenH.
Expand Down

0 comments on commit 3a1d1ac

Please sign in to comment.