diff options
author | Robert Richter <robert.richter@amd.com> | 2010-07-20 14:50:49 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-07-20 19:21:38 -0400 |
commit | db10db48b2c530def21bfd76d576702c7df7f620 (patch) | |
tree | a02382cb102d45ca6d286fcf219074e3049ed5fa /arch/x86/kernel/cpu | |
parent | 7aa2b5f8ec60505160df1c25398e8286c8432689 (diff) |
x86, xsave: 32/64 bit boot cpu check unification in initialization
Boot cpu id is always 0, thus simplifying and unifying boot cpu check.
boot_cpu_id is there for historical reasons and was renamed to
boot_cpu_physical_apicid in patch:
c70dcb7 x86: change boot_cpu_id to boot_cpu_physical_apicid
However, there are some remaining occurrences of boot_cpu_id that are
never touched in the kernel and thus its value is always 0.
Signed-off-by: Robert Richter <robert.richter@amd.com>
LKML-Reference: <1279651857-24639-3-git-send-email-robert.richter@amd.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 3f715efc594d..26804b2986b8 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -1273,7 +1273,7 @@ void __cpuinit cpu_init(void) | |||
1273 | /* | 1273 | /* |
1274 | * Boot processor to setup the FP and extended state context info. | 1274 | * Boot processor to setup the FP and extended state context info. |
1275 | */ | 1275 | */ |
1276 | if (smp_processor_id() == boot_cpu_id) | 1276 | if (!smp_processor_id()) |
1277 | init_thread_xstate(); | 1277 | init_thread_xstate(); |
1278 | 1278 | ||
1279 | xsave_init(); | 1279 | xsave_init(); |