]> xenbits.xensource.com Git - people/aperard/linux.git/commit
cpufreq: intel_pstate: fix pstate limits enforcement for adjust_perf call back
authorDoug Smythies <dsmythies@telus.net>
Sat, 17 Feb 2024 21:30:10 +0000 (13:30 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 24 Feb 2024 14:01:59 +0000 (15:01 +0100)
commitf0a0fc10abb062d122db5ac4ed42f6d1ca342649
tree2a79a8da9d3882cdf9aa0a6fb33dbfb927fb4864
parentb401b621758e46812da61fa58a67c3fd8d91de0d
cpufreq: intel_pstate: fix pstate limits enforcement for adjust_perf call back

There is a loophole in pstate limit clamping for the intel_cpufreq CPU
frequency scaling driver (intel_pstate in passive mode), schedutil CPU
frequency scaling governor, HWP (HardWare Pstate) control enabled, when
the adjust_perf call back path is used.

Fix it.

Fixes: a365ab6b9dfb cpufreq: intel_pstate: Implement the ->adjust_perf() callback
Signed-off-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c