aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_percpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/setup_percpu.c')
-rw-r--r--arch/x86/kernel/setup_percpu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c
index bcca3a7b3748..4caa78d7cb15 100644
--- a/arch/x86/kernel/setup_percpu.c
+++ b/arch/x86/kernel/setup_percpu.c
@@ -113,13 +113,13 @@ void __init setup_per_cpu_areas(void)
113 per_cpu(x86_cpu_to_node_map, cpu) = 113 per_cpu(x86_cpu_to_node_map, cpu) =
114 early_per_cpu_map(x86_cpu_to_node_map, cpu); 114 early_per_cpu_map(x86_cpu_to_node_map, cpu);
115#endif 115#endif
116#endif
116 /* 117 /*
117 * Up to this point, the boot CPU has been using .data.init 118 * Up to this point, the boot CPU has been using .data.init
118 * area. Reload %gs offset for the boot CPU. 119 * area. Reload any changed state for the boot CPU.
119 */ 120 */
120 if (cpu == boot_cpu_id) 121 if (cpu == boot_cpu_id)
121 load_gs_base(cpu); 122 switch_to_new_gdt();
122#endif
123 123
124 DBG("PERCPU: cpu %4d %p\n", cpu, ptr); 124 DBG("PERCPU: cpu %4d %p\n", cpu, ptr);
125 } 125 }