diff options
author | 2022-08-30 14:20:54 +0200 | |
---|---|---|
committer | 2022-08-30 14:20:54 +0200 | |
commit | 45fa44431b336fc2aa5bff01010ed24aee438397 (patch) | |
tree | cdf331bc81181ca754dde7fbcbefcb0888c280d8 | |
parent | cpufreq: schedutil: Move max CPU capacity to sugov_policy (diff) | |
parent | cpufreq: check only freq_table in __resolve_freq() (diff) | |
download | wireguard-linux-45fa44431b336fc2aa5bff01010ed24aee438397.tar.xz wireguard-linux-45fa44431b336fc2aa5bff01010ed24aee438397.zip |
Merge back cpufreq material for v6.1.
Diffstat (limited to '')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 7820c4e74289..69b3d61852ac 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -532,7 +532,7 @@ static unsigned int __resolve_freq(struct cpufreq_policy *policy, target_freq = clamp_val(target_freq, policy->min, policy->max); - if (!cpufreq_driver->target_index) + if (!policy->freq_table) return target_freq; idx = cpufreq_frequency_table_target(policy, target_freq, relation); |