aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_percpu.c
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2009-01-27 00:21:37 -0500
committerTejun Heo <tj@kernel.org>2009-01-27 00:21:37 -0500
commit22f25138c345ec46a13744c93c093ff822cd98d1 (patch)
treea922020043da1a59d4bfcc7da32a40ad0662fdb4 /arch/x86/kernel/setup_percpu.c
parent2697fbd5faf19c84c17441b1752bdcbdcfd1248c (diff)
x86: fix build breakage on voyage
Impact: build fix x86_cpu_to_apicid and x86_bios_cpu_apicid aren't defined for voyage. Earlier patch forgot to conditionalize early percpu clearing. Fix it. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/kernel/setup_percpu.c')
-rw-r--r--arch/x86/kernel/setup_percpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c
index 4caa78d7cb15..c7458ead22de 100644
--- a/arch/x86/kernel/setup_percpu.c
+++ b/arch/x86/kernel/setup_percpu.c
@@ -125,8 +125,10 @@ void __init setup_per_cpu_areas(void)
125 } 125 }
126 126
127 /* indicate the early static arrays will soon be gone */ 127 /* indicate the early static arrays will soon be gone */
128#ifdef CONFIG_X86_LOCAL_APIC
128 early_per_cpu_ptr(x86_cpu_to_apicid) = NULL; 129 early_per_cpu_ptr(x86_cpu_to_apicid) = NULL;
129 early_per_cpu_ptr(x86_bios_cpu_apicid) = NULL; 130 early_per_cpu_ptr(x86_bios_cpu_apicid) = NULL;
131#endif
130#if defined(CONFIG_X86_64) && defined(CONFIG_NUMA) 132#if defined(CONFIG_X86_64) && defined(CONFIG_NUMA)
131 early_per_cpu_ptr(x86_cpu_to_node_map) = NULL; 133 early_per_cpu_ptr(x86_cpu_to_node_map) = NULL;
132#endif 134#endif