]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: Introduce policy->boost_supported flag
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:14 +0000 (09:45 +0530)
commit1f7d1bab50e6ae517f8b6699e56d709d61ae13e5
treeedac5554ba21c94cb7e59cf0e2dfa0d6aefc31dc
parent9a23eb8b2b5d8c5f1129c5a523a786ddd53cd7c9
cpufreq: Introduce policy->boost_supported flag

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.

Add a new flag, boost_supported, which will be set to true by the
cpufreq core only if the freq table contains valid boost frequencies.

Some cpufreq drivers though don't have boost frequencies in the
freq-table, they can set this flag from their ->init() callbacks.

Once all the drivers are updated to set the flag correctly, we can check
it before enabling boost feature for a policy.

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