* mark context switch wrmsr path unlikely
@ 2003-03-24 16:41 davej
0 siblings, 0 replies; only message in thread
From: davej @ 2003-03-24 16:41 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/include/asm-i386/processor.h linux-2.5/include/asm-i386/processor.h
--- bk-linus/include/asm-i386/processor.h 2003-03-21 12:53:30.000000000 +0000
+++ linux-2.5/include/asm-i386/processor.h 2003-03-21 13:45:20.000000000 +0000
@@ -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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-24 17:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 16:41 mark context switch wrmsr path unlikely davej
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®