diff options
author | 2016-04-01 19:52:10 -0500 | |
---|---|---|
committer | 2016-04-01 19:52:10 -0500 | |
commit | 1826907c1f591f820748d33ac77736fe42d18a08 (patch) | |
tree | e053d95435f665cd9373f6aa08c345427521eda3 /arch/x86 | |
parent | Merge branch 'akpm' (patches from Andrew) (diff) | |
parent | Merge branch 'acpi-processor' (diff) | |
download | linux-1826907c1f591f820748d33ac77736fe42d18a08.tar.gz linux-1826907c1f591f820748d33ac77736fe42d18a08.tar.bz2 linux-1826907c1f591f820748d33ac77736fe42d18a08.zip |
Merge tag 'pm+acpi-4.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management and ACPI fix from Rafael J. Wysocki:
"Just one fix for a nasty boot failure on some systems based on Intel
Skylake that shipped with broken firmware where enabling
hardware-coordinated P-states management (HWP) causes a faulty
interrupt handler in SMM to be invoked and crash the system (Srinivas
Pandruvada)"
* tag 'pm+acpi-4.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
ACPI / processor: Request native thermal interrupt handling via _OSC
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/therm_throt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/therm_throt.c b/arch/x86/kernel/cpu/mcheck/therm_throt.c index 0b445c2ff735..ac780cad3b86 100644 --- a/arch/x86/kernel/cpu/mcheck/therm_throt.c +++ b/arch/x86/kernel/cpu/mcheck/therm_throt.c @@ -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*/ |