]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/x86/kernel/cpu/mcheck/therm_throt.c
Merge tag 'v4.6-rc4' into x86/asm, to pick up fixes
[linux-beck.git] / arch / x86 / kernel / cpu / mcheck / therm_throt.c
index 615793321c4934e005bbeb16157d778f9fb9bc81..6b9dc4d18cccd1cd8fa6cf070b618bc878ad5a05 100644 (file)
@@ -384,6 +384,9 @@ static void intel_thermal_interrupt(void)
 {
        __u64 msr_val;
 
+       if (static_cpu_has(X86_FEATURE_HWP))
+               wrmsrl_safe(MSR_HWP_STATUS, 0);
+
        rdmsrl(MSR_IA32_THERM_STATUS, msr_val);
 
        /* Check for violation of core thermal thresholds*/