diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2007-04-30 12:27:25 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-01 11:06:42 -0400 |
commit | 2feae2158a96aa5e02ca2e630896e6f553c36dc0 (patch) | |
tree | 685ddff69bacb8933cd0afff342702847ae11260 /arch/i386/kernel/i8253.c | |
parent | 0293ca814b74e20e77cf719074ee15372204fc55 (diff) |
[VOYAGER] clockevents: correct boot cpu is zero assumption
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>
Diffstat (limited to 'arch/i386/kernel/i8253.c')
-rw-r--r-- | arch/i386/kernel/i8253.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/i8253.c b/arch/i386/kernel/i8253.c index 10cef5ca8a5b..f8a3c4054c70 100644 --- a/arch/i386/kernel/i8253.c +++ b/arch/i386/kernel/i8253.c | |||
@@ -110,7 +110,7 @@ void __init setup_pit_timer(void) | |||
110 | * Start pit with the boot cpu mask and make it global after the | 110 | * Start pit with the boot cpu mask and make it global after the |
111 | * IO_APIC has been initialized. | 111 | * IO_APIC has been initialized. |
112 | */ | 112 | */ |
113 | pit_clockevent.cpumask = cpumask_of_cpu(0); | 113 | pit_clockevent.cpumask = cpumask_of_cpu(smp_processor_id()); |
114 | pit_clockevent.mult = div_sc(CLOCK_TICK_RATE, NSEC_PER_SEC, 32); | 114 | pit_clockevent.mult = div_sc(CLOCK_TICK_RATE, NSEC_PER_SEC, 32); |
115 | pit_clockevent.max_delta_ns = | 115 | pit_clockevent.max_delta_ns = |
116 | clockevent_delta2ns(0x7FFF, &pit_clockevent); | 116 | clockevent_delta2ns(0x7FFF, &pit_clockevent); |