From: Ralf Baechle Date: Tue, 16 Aug 2005 18:11:07 +0000 (+0000) Subject: Do the timer interrupt only once on CPU 0 ... X-Git-Tag: v2.6.15-rc1~731^2~1^2~104 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a50b3e2763dc23f8427b7f4a199235dfe9a073c0;p=linux-2.6 Do the timer interrupt only once on CPU 0 ... Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/sibyte/sb1250/time.c b/arch/mips/sibyte/sb1250/time.c index 6f87f52d48..511c89d65f 100644 --- a/arch/mips/sibyte/sb1250/time.c +++ b/arch/mips/sibyte/sb1250/time.c @@ -107,17 +107,18 @@ void sb1250_timer_interrupt(struct pt_regs *regs) ____raw_writeq(M_SCD_TIMER_ENABLE | M_SCD_TIMER_MODE_CONTINUOUS, IOADDR(A_SCD_TIMER_REGISTER(cpu, R_SCD_TIMER_CFG))); - /* - * CPU 0 handles the global timer interrupt job - */ if (cpu == 0) { + /* + * CPU 0 handles the global timer interrupt job + */ ll_timer_interrupt(irq, regs); } - - /* - * every CPU should do profiling and process accouting - */ - ll_local_timer_interrupt(irq, regs); + else { + /* + * other CPUs should just do profiling and process accounting + */ + ll_local_timer_interrupt(irq, regs); + } } /*