cpufreq: qcom-hw: enable boost support
authorShawn Guo <shawn.guo@linaro.org>
Wed, 13 Jan 2021 06:52:41 +0000 (14:52 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 18 Jan 2021 06:43:53 +0000 (12:13 +0530)
commit266991721c15f9feb5c4b839cb1bdde4a2b20030
tree02447736bf5e4fe3e36e7241f78bc77582eb7257
parent763ec5daaea835e5604d08364c9081e7304b7c2b
cpufreq: qcom-hw: enable boost support

At least on sdm850, the 2956800 khz is detected as a boost frequency in
function qcom_cpufreq_hw_read_lut().  Let's enable boost support by
calling cpufreq_enable_boost_support(), so that we can get the boost
frequency by switching it on via 'boost' sysfs entry like below.

 $ echo 1 > /sys/devices/system/cpu/cpufreq/boost

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Steev Klimaszewski <steev@kali.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c