diff options
author | Andi Kleen <ak@suse.de> | 2005-09-12 12:49:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 13:49:56 -0400 |
commit | 357e11d4cbbbb959a88a9bdbbf33a10f160b0823 (patch) | |
tree | 466ff21d61294a3f22614a9f28bec5aec746d2a3 /arch | |
parent | df0cc26b1b7f88f46307eea50a7469f0b58132d9 (diff) |
[PATCH] x86-64: Don't assume APIC for boot processor has an APIC ID of zero
Originally from Stuart Hayes.
When setting up the APIC for the Uniprocessor kernel don't
assume the CPU has an APIC ID of zero.
This fixes boot with the UP kernel on Dell PowerEdge 6800/6850 4way systems.
Cc: Stuart.Hayes@dell.com
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86_64/kernel/apic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/apic.c b/arch/x86_64/kernel/apic.c index fc84bea42fd4..12e9d6ca7222 100644 --- a/arch/x86_64/kernel/apic.c +++ b/arch/x86_64/kernel/apic.c | |||
@@ -1051,7 +1051,7 @@ int __init APIC_init_uniprocessor (void) | |||
1051 | 1051 | ||
1052 | connect_bsp_APIC(); | 1052 | connect_bsp_APIC(); |
1053 | 1053 | ||
1054 | phys_cpu_present_map = physid_mask_of_physid(0); | 1054 | phys_cpu_present_map = physid_mask_of_physid(boot_cpu_id); |
1055 | apic_write_around(APIC_ID, boot_cpu_id); | 1055 | apic_write_around(APIC_ID, boot_cpu_id); |
1056 | 1056 | ||
1057 | setup_local_APIC(); | 1057 | setup_local_APIC(); |