Skip to content

Commit

Permalink
powerpc: Remove NO_IRQ_IGNORE
Browse files Browse the repository at this point in the history
Now that legacy iSeries is gone, this is no longer used.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Stephen Rothwell authored and Benjamin Herrenschmidt committed Mar 28, 2012
1 parent 9012899 commit 7ba3e4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 0 additions & 6 deletions arch/powerpc/include/asm/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ extern atomic_t ppc_n_lost_interrupts;
/* This number is used when no interrupt has been assigned */
#define NO_IRQ (0)

/* This is a special irq number to return from get_irq() to tell that
* no interrupt happened _and_ ignore it (don't count it as bad). Some
* platforms like iSeries rely on that.
*/
#define NO_IRQ_IGNORE ((unsigned int)-1)

/* Total number of virq in the platform */
#define NR_IRQS CONFIG_NR_IRQS

Expand Down
4 changes: 1 addition & 3 deletions arch/powerpc/include/asm/machdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ struct machdep_calls {

void (*init_IRQ)(void);

/* Return an irq, or NO_IRQ to indicate there are none pending.
* If for some reason there is no irq, but the interrupt
* shouldn't be counted as spurious, return NO_IRQ_IGNORE. */
/* Return an irq, or NO_IRQ to indicate there are none pending. */
unsigned int (*get_irq)(void);

/* PCI stuff */
Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,9 @@ void do_IRQ(struct pt_regs *regs)
may_hard_irq_enable();

/* And finally process it */
if (irq != NO_IRQ && irq != NO_IRQ_IGNORE)
if (irq != NO_IRQ)
handle_one_irq(irq);
else if (irq != NO_IRQ_IGNORE)
else
__get_cpu_var(irq_stat).spurious_irqs++;

irq_exit();
Expand Down

0 comments on commit 7ba3e4f

Please sign in to comment.