x86: pass in cpu number to switch_to_new_gdt()
[linux-3.10.git] / arch / x86 / kernel / smpboot.c
index f9dbcff..612d3c7 100644 (file)
@@ -1185,7 +1185,7 @@ out:
 void __init native_smp_prepare_boot_cpu(void)
 {
        int me = smp_processor_id();
-       switch_to_new_gdt();
+       switch_to_new_gdt(me);
        /* already set me in cpu_online_mask in boot_cpu_init() */
        cpumask_set_cpu(me, cpu_callout_mask);
        per_cpu(cpu_state, me) = CPU_ONLINE;