x86/voyager: fix compile breakage caused by dc1e35c6e9

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>
This commit is contained in:
James Bottomley
2008-10-30 16:00:59 -05:00
committed by Ingo Molnar
parent 9e41bff270
commit b3572e361b
3 changed files with 11 additions and 1 deletions

View File

@ -1134,7 +1134,7 @@ void __cpuinit cpu_init(void)
/*
* Boot processor to setup the FP and extended state context info.
*/
if (!smp_processor_id())
if (smp_processor_id() == boot_cpu_id)
init_thread_xstate();
xsave_init();