diff options
author | James Bottomley <James.Bottomley@SteelEye.com> | 2005-04-21 19:20:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-21 19:20:35 -0400 |
commit | 1cff94c6fecdc54d6f022ae5a22888f8272804a1 (patch) | |
tree | 42fbf4cd2a674d83e2363bab0729ca13b0aeae0a /arch | |
parent | 62b56faa43a7e672e659d14f38f553ed8b40ea70 (diff) |
[PATCH] fix subarch breakage in amd dual core updates
The patch to arch/i386/kernel/cpu/amd.c relies on the variable
cpu_core_id which is defined in i386/kernel/smpboot.c. This means it is
only present if CONFIG_X86_SMP is defined, not CONFIG_SMP (alternative
SMP harnesses won't have it, which is why it breaks voyager).
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/kernel/cpu/amd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/amd.c b/arch/i386/kernel/cpu/amd.c index 8d182e875cd7..16dbc4151be4 100644 --- a/arch/i386/kernel/cpu/amd.c +++ b/arch/i386/kernel/cpu/amd.c | |||
@@ -24,7 +24,7 @@ __asm__(".align 4\nvide: ret"); | |||
24 | 24 | ||
25 | static void __init init_amd(struct cpuinfo_x86 *c) | 25 | static void __init init_amd(struct cpuinfo_x86 *c) |
26 | { | 26 | { |
27 | #ifdef CONFIG_SMP | 27 | #ifdef CONFIG_X86_SMP |
28 | int cpu = c == &boot_cpu_data ? 0 : c - cpu_data; | 28 | int cpu = c == &boot_cpu_data ? 0 : c - cpu_data; |
29 | #endif | 29 | #endif |
30 | u32 l, h; | 30 | u32 l, h; |
@@ -198,7 +198,7 @@ static void __init init_amd(struct cpuinfo_x86 *c) | |||
198 | c->x86_num_cores = 1; | 198 | c->x86_num_cores = 1; |
199 | } | 199 | } |
200 | 200 | ||
201 | #ifdef CONFIG_SMP | 201 | #ifdef CONFIG_X86_SMP |
202 | /* | 202 | /* |
203 | * On a AMD dual core setup the lower bits of the APIC id | 203 | * On a AMD dual core setup the lower bits of the APIC id |
204 | * distingush the cores. Assumes number of cores is a power | 204 | * distingush the cores. Assumes number of cores is a power |