|
@@ -49,13 +49,13 @@ static void __cpuinit intel_init_thermal(struct cpuinfo_x86 *c)
|
|
|
*/
|
|
|
rdmsr(MSR_IA32_MISC_ENABLE, l, h);
|
|
|
h = apic_read(APIC_LVTTHMR);
|
|
|
- if ((l & (1 << 3)) && (h & APIC_DM_SMI)) {
|
|
|
+ if ((l & MSR_IA32_MISC_ENABLE_TM1) && (h & APIC_DM_SMI)) {
|
|
|
printk(KERN_DEBUG
|
|
|
"CPU%d: Thermal monitoring handled by SMI\n", cpu);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (cpu_has(c, X86_FEATURE_TM2) && (l & (1 << 13)))
|
|
|
+ if (cpu_has(c, X86_FEATURE_TM2) && (l & MSR_IA32_MISC_ENABLE_TM2))
|
|
|
tm2 = 1;
|
|
|
|
|
|
if (h & APIC_VECTOR_MASK) {
|
|
@@ -73,7 +73,7 @@ static void __cpuinit intel_init_thermal(struct cpuinfo_x86 *c)
|
|
|
wrmsr(MSR_IA32_THERM_INTERRUPT, l | 0x03, h);
|
|
|
|
|
|
rdmsr(MSR_IA32_MISC_ENABLE, l, h);
|
|
|
- wrmsr(MSR_IA32_MISC_ENABLE, l | (1 << 3), h);
|
|
|
+ wrmsr(MSR_IA32_MISC_ENABLE, l | MSR_IA32_MISC_ENABLE_TM1, h);
|
|
|
|
|
|
l = apic_read(APIC_LVTTHMR);
|
|
|
apic_write(APIC_LVTTHMR, l & ~APIC_LVT_MASKED);
|