summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDave Jones <davej@codemonkey.org.uk>2003-03-23 16:51:36 -0800
committerDave Jones <davej@codemonkey.org.uk>2003-03-23 16:51:36 -0800
commit8109a537a14ed0e32c7e8d03bc1497f31924aeee (patch)
treec1d00a9c736f96a702f09ba1f741c5d08b3c47d5 /include
parentb3c93435bd536479da8c4033cd6b41c52b3c7223 (diff)
[PATCH] mark context switch wrmsr path unlikely
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h
index 6ff7a04f76b1..02afcad41215 100644
--- a/include/asm-i386/processor.h
+++ b/include/asm-i386/processor.h
@@ -419,7 +419,7 @@ static inline void load_esp0(struct tss_struct *tss, unsigned long esp0)
{
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);
}