diff options
author | Vegard Nossum <vegard.nossum@gmail.com> | 2009-02-20 05:56:38 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-20 06:07:43 -0500 |
commit | ecab22aa6dc9d42ca52de2cad0854b4c6bd85ac9 (patch) | |
tree | cc9e8fbe1a6106a7298b8107293ff385e38a40fc /arch/x86/kernel/cpu/intel.c | |
parent | 71d8f9784a99991a7571dd20226f5f450dda7f34 (diff) |
x86: use symbolic constants for MSR_IA32_MISC_ENABLE bits
Impact: Cleanup. No functional changes.
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/intel.c')
-rw-r--r-- | arch/x86/kernel/cpu/intel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index 1f137a87d4bd..c8ff69a46681 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c | |||
@@ -147,10 +147,10 @@ static void __cpuinit intel_workarounds(struct cpuinfo_x86 *c) | |||
147 | */ | 147 | */ |
148 | if ((c->x86 == 15) && (c->x86_model == 1) && (c->x86_mask == 1)) { | 148 | if ((c->x86 == 15) && (c->x86_model == 1) && (c->x86_mask == 1)) { |
149 | rdmsr(MSR_IA32_MISC_ENABLE, lo, hi); | 149 | rdmsr(MSR_IA32_MISC_ENABLE, lo, hi); |
150 | if ((lo & (1<<9)) == 0) { | 150 | if ((lo & MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE) == 0) { |
151 | printk (KERN_INFO "CPU: C0 stepping P4 Xeon detected.\n"); | 151 | printk (KERN_INFO "CPU: C0 stepping P4 Xeon detected.\n"); |
152 | printk (KERN_INFO "CPU: Disabling hardware prefetching (Errata 037)\n"); | 152 | printk (KERN_INFO "CPU: Disabling hardware prefetching (Errata 037)\n"); |
153 | lo |= (1<<9); /* Disable hw prefetching */ | 153 | lo |= MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE; |
154 | wrmsr (MSR_IA32_MISC_ENABLE, lo, hi); | 154 | wrmsr (MSR_IA32_MISC_ENABLE, lo, hi); |
155 | } | 155 | } |
156 | } | 156 | } |