summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/intel_pstate.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada2016-02-26 00:09:31 +0100
committerRafael J. Wysocki2016-02-26 22:15:38 +0100
commitf05c966585ec5295516f946505661ec2f9966e5a (patch)
tree58652a084b71050cbd6767154a5fd3b557b9a064 /drivers/cpufreq/intel_pstate.c
parentcpufreq: intel_pstate: Enable HWP by default (diff)
downloadkernel-qcow2-linux-f05c966585ec5295516f946505661ec2f9966e5a.tar.gz
kernel-qcow2-linux-f05c966585ec5295516f946505661ec2f9966e5a.tar.xz
kernel-qcow2-linux-f05c966585ec5295516f946505661ec2f9966e5a.zip
cpufreq: intel_pstate: disable HWP notifications
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>
Diffstat (limited to 'drivers/cpufreq/intel_pstate.c')
-rw-r--r--drivers/cpufreq/intel_pstate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index ebe8506ba285..937667065d31 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -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);
}