Re: [PATCH] i386/x86-64: Fix timer SMP bootup race

From: Andrew Morton
Date: Sat Jan 15 2005 - 02:42:22 EST


Rusty Russell <rusty@xxxxxxxxxxxxxxx> wrote:
>
> static inline void do_timer_interrupt_hook(struct pt_regs *regs)
> {
> - do_timer(regs);
> + /* i386 brings up CPU before core is setup. */
> + if (unlikely(!cpu_online(smp_processor_id())))
> + jiffies64++;
> + else
> + do_timer(regs);

I thik I preferred Andi's approach - it adds code which is largely dropped
from the memory. This patch adds a test-n-branch to every timer interrupt..
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/