x86-64, espfix: Don't leak bits 31:16 of %esp returning to 16-bit stack
[pandora-kernel.git] / arch / x86 / kernel / smpboot.c
index b88eadb..20dc070 100644 (file)
@@ -265,6 +265,13 @@ notrace static void __cpuinit start_secondary(void *unused)
         */
        check_tsc_sync_target();
 
+       /*
+        * Enable the espfix hack for this CPU
+        */
+#ifdef CONFIG_X86_64
+       init_espfix_ap();
+#endif
+
        /*
         * We need to hold call_lock, so there is no inconsistency
         * between the time smp_call_function() determines number of