]> git.ipfire.org Git - thirdparty/linux.git/commit
cpufreq: Restrict enabling boost on policies with no boost frequencies
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 23 Jan 2025 05:34:25 +0000 (11:04 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 7 Feb 2025 04:15:15 +0000 (09:45 +0530)
commit691b321278124e7cab6855dd2992e067013b4198
tree6d7c052d98f2e8db651bf183b04e43b7e577399d
parenta3f48fb2e5b7db23b4bc5c699baf67c18b50ab4b
cpufreq: Restrict enabling boost on policies with no boost frequencies

It is possible to have a scenario where not all cpufreq policies support
boost frequencies. And letting sysfs (or other parts of the kernel)
enable boost feature for that policy isn't correct.

Now that all drivers (that required a change) are updated to set the
policy->boost_supported properly, check this flag before enabling boost
feature for a policy.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq.c