Skip to contentSkip to conversation

mark context switch wrmsr path unlikely

PATCH [email protected] 1 participant 1 message Mar 24, 2003

lore
Share & tools
lore
#0 lore raw
include/asm-i386/processor.h +1 -1
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/include/asm-i386/processor.h linux-2.5/include/asm-i386/processor.h
@@ -419,7 +419,7 @@ static inline void load_esp0(struct tss_
 {
 	tss->esp0 = esp0;
 	/* This can only happen when SEP is enabled, no need to test "SEP"arately */
-	if (tss->ss1 != __KERNEL_CS) {
+	if ((unlikely(tss->ss1 != __KERNEL_CS))) {
 		tss->ss1 = __KERNEL_CS;
 		wrmsr(MSR_IA32_SYSENTER_CS, __KERNEL_CS, 0);
 	}