[PATCH] Don't leak NT bit into next task
[linux-drm-fsl-dcu.git] / arch / x86_64 / kernel / setup64.c
index 9332d2361e0818ad7f9a2dec60c7d3f0cd67b4b3..8c4b80fe71a146c73447d4af46ced0e60d80c5b9 100644 (file)
@@ -180,6 +180,8 @@ void __cpuinit check_efer(void)
         }       
 }
 
+unsigned long kernel_eflags;
+
 /*
  * cpu_init() initializes state that is per-CPU. Some data is already
  * initialized (naturally) in the bootstrap process, such as the GDT
@@ -281,4 +283,6 @@ void __cpuinit cpu_init (void)
        set_debugreg(0UL, 7);
 
        fpu_init(); 
+
+       raw_local_save_flags(kernel_eflags);
 }