]> err.no Git - linux-2.6/commitdiff
[VOYAGER] clockevents: correct boot cpu is zero assumption
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 30 Apr 2007 16:27:25 +0000 (11:27 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 1 May 2007 15:06:42 +0000 (10:06 -0500)
This isn't true for voyager, so alter setup_pit_timer() to initialise
the cpumask from the current processor id (which should be the boot
processor) rather than defaulting to zero.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
arch/i386/kernel/i8253.c

index 10cef5ca8a5b1c459a8c5daccc9903c0598b75a9..f8a3c4054c702d592f4049d98f9791d4d938af0c 100644 (file)
@@ -110,7 +110,7 @@ void __init setup_pit_timer(void)
         * Start pit with the boot cpu mask and make it global after the
         * IO_APIC has been initialized.
         */
-       pit_clockevent.cpumask = cpumask_of_cpu(0);
+       pit_clockevent.cpumask = cpumask_of_cpu(smp_processor_id());
        pit_clockevent.mult = div_sc(CLOCK_TICK_RATE, NSEC_PER_SEC, 32);
        pit_clockevent.max_delta_ns =
                clockevent_delta2ns(0x7FFF, &pit_clockevent);