]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/x86/kernel/cpu/common.c
x86: cpu/common*.c, merge switch_to_new_gdt()
[mirror_ubuntu-artful-kernel.git] / arch / x86 / kernel / cpu / common.c
index f44678db16162ccb7e1b84d8ed24521e644cd0d9..43d5287bb2a466bf90a04b73dff056b1cc8b8bc8 100644 (file)
@@ -215,7 +215,9 @@ void switch_to_new_gdt(void)
        gdt_descr.address = (long)get_cpu_gdt_table(smp_processor_id());
        gdt_descr.size = GDT_SIZE - 1;
        load_gdt(&gdt_descr);
+#ifdef CONFIG_X86_32
        asm("mov %0, %%fs" : : "r" (__KERNEL_PERCPU) : "memory");
+#endif
 }
 
 static struct cpu_dev *cpu_devs[X86_VENDOR_NUM] = {};