From: Chris Wright Date: Sat, 21 Jul 2007 15:11:33 +0000 (+0200) Subject: i386: hpet assumes boot cpu is 0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=43d6ca01844789b4c695175f8c205861a06a84cb;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git i386: hpet assumes boot cpu is 0 I fixed this in x86_64. Looks like the kind of thing that will break voyager on i386. Signed-off-by: Chris Wright Signed-off-by: Thomas Gleixner Cc: Ingo Molnar Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/hpet.c b/arch/i386/kernel/hpet.c index b93310d11950..533d4932bc79 100644 --- a/arch/i386/kernel/hpet.c +++ b/arch/i386/kernel/hpet.c @@ -326,7 +326,7 @@ int __init hpet_enable(void) * Start hpet with the boot cpu mask and make it * global after the IO_APIC has been initialized. */ - hpet_clockevent.cpumask =cpumask_of_cpu(0); + hpet_clockevent.cpumask = cpumask_of_cpu(smp_processor_id()); clockevents_register_device(&hpet_clockevent); global_clock_event = &hpet_clockevent; return 1;