diff options
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 25581dcb280e..003a65395bd5 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -549,6 +549,10 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c) | |||
549 | this_cpu->c_early_init(c); | 549 | this_cpu->c_early_init(c); |
550 | 550 | ||
551 | validate_pat_support(c); | 551 | validate_pat_support(c); |
552 | |||
553 | #ifdef CONFIG_SMP | ||
554 | c->cpu_index = boot_cpu_id; | ||
555 | #endif | ||
552 | } | 556 | } |
553 | 557 | ||
554 | void __init early_cpu_init(void) | 558 | void __init early_cpu_init(void) |
@@ -1134,7 +1138,7 @@ void __cpuinit cpu_init(void) | |||
1134 | /* | 1138 | /* |
1135 | * Boot processor to setup the FP and extended state context info. | 1139 | * Boot processor to setup the FP and extended state context info. |
1136 | */ | 1140 | */ |
1137 | if (!smp_processor_id()) | 1141 | if (smp_processor_id() == boot_cpu_id) |
1138 | init_thread_xstate(); | 1142 | init_thread_xstate(); |
1139 | 1143 | ||
1140 | xsave_init(); | 1144 | xsave_init(); |