diff options
| author | Dave Jones <davej@codemonkey.org.uk> | 2003-03-23 16:51:36 -0800 |
|---|---|---|
| committer | Dave Jones <davej@codemonkey.org.uk> | 2003-03-23 16:51:36 -0800 |
| commit | 8109a537a14ed0e32c7e8d03bc1497f31924aeee (patch) | |
| tree | c1d00a9c736f96a702f09ba1f741c5d08b3c47d5 /include | |
| parent | b3c93435bd536479da8c4033cd6b41c52b3c7223 (diff) | |
[PATCH] mark context switch wrmsr path unlikely
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-i386/processor.h | 2 |
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); } |
