cpufreq: intel_pstate: disable HWP notifications
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 25 Feb 2016 23:09:31 +0000 (15:09 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Feb 2016 21:15:38 +0000 (22:15 +0100)
Disable HWP Interrupt notification before enabling HWP. Since we don't
have HWP interrupt handling for possible performance interrupts, there
is not much use of enabling HWP interrupts.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c

index ebe8506ba285c79ca1f2e47374463993052f8110..937667065d31ad15d023e9f22d97f4f92bef92d4 100644 (file)
@@ -534,6 +534,9 @@ 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);
+
        wrmsrl_on_cpu(cpudata->cpu, MSR_PM_ENABLE, 0x1);
 }