x86: fix build breakage on voyage
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 27 Jan 2009 05:21:37 +0000 (14:21 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 27 Jan 2009 05:21:37 +0000 (14:21 +0900)
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>
arch/x86/kernel/setup_percpu.c

index 4caa78d7cb15e2376e77586fab82100689ec56f6..c7458ead22de1c64b5216e0c3c3775d9141405d3 100644 (file)
@@ -125,8 +125,10 @@ void __init setup_per_cpu_areas(void)
        }
 
        /* indicate the early static arrays will soon be gone */
+#ifdef CONFIG_X86_LOCAL_APIC
        early_per_cpu_ptr(x86_cpu_to_apicid) = NULL;
        early_per_cpu_ptr(x86_bios_cpu_apicid) = NULL;
+#endif
 #if defined(CONFIG_X86_64) && defined(CONFIG_NUMA)
        early_per_cpu_ptr(x86_cpu_to_node_map) = NULL;
 #endif