From: Alexandra Yates Date: Wed, 18 Nov 2015 22:58:40 +0000 (-0800) Subject: intel_pstate: Fix "performance" mode behavior with HWP enabled X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=584ee3dcb1d6232857c1e38bb28d9f6bf0ec89f5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git intel_pstate: Fix "performance" mode behavior with HWP enabled If hardware-driven P-state selection (HWP) is enabled, the "performance" mode of intel_pstate should only allow the processor to use the highest-performance P-state available. That is not the case currently, so make it actually happen. Acked-by: Srinivas Pandruvada Signed-off-by: Alexandra Yates [ rjw: Subject and changelog ] Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 8ad1f958ffe4..4d07cbd2b23c 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -1101,6 +1101,8 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy) policy->max >= policy->cpuinfo.max_freq) { pr_debug("intel_pstate: set performance\n"); limits = &performance_limits; + if (hwp_active) + intel_pstate_hwp_set(); return 0; }