x86/voyager: fix compile breakage caused by dc1e35c6e95e8923cf1d3510438b63c600fee1e2

Impact: build fix on x86/Voyager

Given commits like this:

| Author: Suresh Siddha <suresh.b.siddha@intel.com>
| Date: Tue Jul 29 10:29:19 2008 -0700
|
| x86, xsave: enable xsave/xrstor on cpus with xsave support

Which deliberately expose boot cpu dependence to pieces of the system,
I think it's time to explicitly have a variable for it to prevent this
continual misassumption that the boot CPU is zero.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by James Bottomley and committed by Ingo Molnar b3572e36 9e41bff2

+11 -1
+4
arch/x86/Kconfig
··· 231 231 232 232 If you don't know what to do here, say N. 233 233 234 + config X86_HAS_BOOT_CPU_ID 235 + def_bool y 236 + depends on X86_VOYAGER 237 + 234 238 config X86_FIND_SMP_CONFIG 235 239 def_bool y 236 240 depends on X86_MPPARSE || X86_VOYAGER
+6
arch/x86/include/asm/smp.h
··· 225 225 226 226 #endif /* CONFIG_X86_LOCAL_APIC */ 227 227 228 + #ifdef CONFIG_X86_HAS_BOOT_CPU_ID 229 + extern unsigned char boot_cpu_id; 230 + #else 231 + #define boot_cpu_id 0 232 + #endif 233 + 228 234 #endif /* __ASSEMBLY__ */ 229 235 #endif /* _ASM_X86_SMP_H */
+1 -1
arch/x86/kernel/cpu/common.c
··· 1134 1134 /* 1135 1135 * Boot processor to setup the FP and extended state context info. 1136 1136 */ 1137 - if (!smp_processor_id()) 1137 + if (smp_processor_id() == boot_cpu_id) 1138 1138 init_thread_xstate(); 1139 1139 1140 1140 xsave_init();