|
@@ -806,7 +806,8 @@ static void __init intel_pstate_sysfs_expose_params(void)
|
|
|
static void intel_pstate_hwp_enable(struct cpudata *cpudata)
|
|
|
{
|
|
|
/* First disable HWP notification interrupt as we don't process them */
|
|
|
- wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_INTERRUPT, 0x00);
|
|
|
+ if (static_cpu_has(X86_FEATURE_HWP_NOTIFY))
|
|
|
+ wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_INTERRUPT, 0x00);
|
|
|
|
|
|
wrmsrl_on_cpu(cpudata->cpu, MSR_PM_ENABLE, 0x1);
|
|
|
}
|