]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Take CPUFREQ_GOV_STRICT_TARGET into account
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Nov 2020 17:27:40 +0000 (18:27 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Nov 2020 17:36:17 +0000 (18:36 +0100)
commitdcffa9f879c9daa83da597686f0ff357044878c8
tree87125e91827b975cb743ab2be58ddb9a47c4b8d9
parent323b8f498f164e8e0f2c696c56290028c4a678fe
cpufreq: intel_pstate: Take CPUFREQ_GOV_STRICT_TARGET into account

Make intel_pstate take the new CPUFREQ_GOV_STRICT_TARGET governor
flag into account when it operates in the passive mode with HWP
enabled, so as to fix the "powersave" governor behavior in that
case (currently, HWP is allowed to scale the performance all the
way up to the policy max limit when the "powersave" governor is
used, but it should be constrained to the policy min limit then).

Fixes: e43b6ae4dc34 ("cpufreq: intel_pstate: Implement passive mode with HWP enabled")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 5.9+ <stable@vger.kernel.org> # 5.9+: 5826b0a49c4c cpufreq: Introduce governor flags
Cc: 5.9+ <stable@vger.kernel.org> # 5.9+: 45137389a87d cpufreq: Introduce CPUFREQ_GOV_STRICT_TARGET
Cc: 5.9+ <stable@vger.kernel.org> # 5.9+: 323b8f498f16 cpufreq: Add strict_target to struct cpufreq_policy
drivers/cpufreq/intel_pstate.c