diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-12-26 18:27:38 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-12-31 21:49:51 -0500 |
commit | 7a6c79f2fe53dac9b7b290f3a4c56b0958e19201 (patch) | |
tree | ed4fe2c6a492e42e69e885e81a9ec1f5f6b9bbf0 /include/linux/cpufreq.h | |
parent | 17135782b816383b426d280c350467b23ef9c10c (diff) |
cpufreq: Simplify core code related to boost support
Notice that the boost_supported field in struct cpufreq_driver is
redundant, because the driver's ->set_boost callback may be left
unset if "boost" is not supported. Moreover, the only driver
populating the ->set_boost callback is acpi_cpufreq, so make it
avoid populating that callback if "boost" is not supported, rework
the core to check ->set_boost instead of boost_supported to
verify "boost" support and drop boost_supported which isn't
used any more.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index f859b728d98e..88a4215125bc 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -278,7 +278,6 @@ struct cpufreq_driver { | |||
278 | struct freq_attr **attr; | 278 | struct freq_attr **attr; |
279 | 279 | ||
280 | /* platform specific boost support code */ | 280 | /* platform specific boost support code */ |
281 | bool boost_supported; | ||
282 | bool boost_enabled; | 281 | bool boost_enabled; |
283 | int (*set_boost)(int state); | 282 | int (*set_boost)(int state); |
284 | }; | 283 | }; |