From: Srinivas Pandruvada Date: Thu, 25 Feb 2016 23:09:31 +0000 (-0800) Subject: cpufreq: intel_pstate: disable HWP notifications X-Git-Tag: v4.6-rc6~4^2^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f05c966585ec5295516f946505661ec2f9966e5a;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index ebe8506b..93766706 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); }