cpufreq: intel_pstate: Replace three global.turbo_disabled checks
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 25 Mar 2024 17:05:06 +0000 (18:05 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Apr 2024 10:57:17 +0000 (12:57 +0200)
commitf32587dcbe5f40e160d8de262add6abab79356a7
tree424e2622de75b9bb89c704c095fdf1899843f0c2
parent9558fae8ce97b3b320b387dd7c88309df2c36d4d
cpufreq: intel_pstate: Replace three global.turbo_disabled checks

Replace the global.turbo_disabled in __intel_pstate_update_max_freq() with
a global.no_turbo one to make store_no_turbo() actually update the maximum
CPU frequency on the trubo preference changes, which needs to be consistent
with arch_set_max_freq_ratio() called from there.

For more consistency, replace the global.turbo_disabled checks in
__intel_pstate_cpu_init() and intel_cpufreq_adjust_perf() with
global.no_turbo checks either.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
drivers/cpufreq/intel_pstate.c