]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/kernel/smpboot.c
init: Invoke init_espfix_bsp() from mm_init()
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kernel / smpboot.c
index d56c1d2092835a2a3dcb608250a62afc5d2e8379..33d6000265aa75e6f4d41ed55d4a9ac13a1b6ba2 100644 (file)
@@ -990,12 +990,8 @@ static int do_boot_cpu(int apicid, int cpu, struct task_struct *idle,
        initial_code = (unsigned long)start_secondary;
        initial_stack  = idle->thread.sp;
 
-       /*
-        * Enable the espfix hack for this CPU
-       */
-#ifdef CONFIG_X86_ESPFIX64
+       /* Enable the espfix hack for this CPU */
        init_espfix_ap(cpu);
-#endif
 
        /* So we see what's up */
        announce_cpu(cpu, apicid);