]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/x86/include/asm/processor.h
x86/entry/32: Pull the MSR_IA32_SYSENTER_CS update code out of native_load_sp0()
[linux.git] / arch / x86 / include / asm / processor.h
index b390ff76e58fd9f28c62ba5e3a8ab169ac18ad62..0167e3e35a574738ddfe96d2cb9387d23a07d9b7 100644 (file)
@@ -520,13 +520,6 @@ static inline void
 native_load_sp0(struct tss_struct *tss, struct thread_struct *thread)
 {
        tss->x86_tss.sp0 = thread->sp0;
-#ifdef CONFIG_X86_32
-       /* Only happens when SEP is enabled, no need to test "SEP"arately: */
-       if (unlikely(tss->x86_tss.ss1 != thread->sysenter_cs)) {
-               tss->x86_tss.ss1 = thread->sysenter_cs;
-               wrmsr(MSR_IA32_SYSENTER_CS, thread->sysenter_cs, 0);
-       }
-#endif
 }
 
 static inline void native_swapgs(void)