Skip to content

Commit

Permalink
MIPS: MIPS boards: Get rid of useless SMP/non-SMP casing.
Browse files Browse the repository at this point in the history
    
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle authored and Unknown committed Jan 10, 2006
1 parent b4672d3 commit 11e6df6
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions arch/mips/mips-boards/generic/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,16 @@ static void mips_timer_dispatch (struct pt_regs *regs)

irqreturn_t mips_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
#ifdef CONFIG_SMP
int cpu = smp_processor_id();

if (cpu == 0) {
/*
* CPU 0 handles the global timer interrupt job and process accounting
* resets count/compare registers to trigger next timer int.
*/
(void) timer_interrupt(irq, dev_id, regs);
timer_interrupt(irq, dev_id, regs);
scroll_display_message();
}
else {
} else {
/* Everyone else needs to reset the timer int here as
ll_local_timer_interrupt doesn't */
/*
Expand All @@ -104,15 +102,6 @@ irqreturn_t mips_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
}

return IRQ_HANDLED;
#else
irqreturn_t r;

r = timer_interrupt(irq, dev_id, regs);

scroll_display_message();

return r;
#endif
}

/*
Expand Down

0 comments on commit 11e6df6

Please sign in to comment.