mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
cpu_input_boost: Add support for boost freqs lower than min freq
Adds ability to disable boosting of certain clusters by setting boost freq to 0 for it. Otherwise freq would drop to cpuinfo.min, which isn't desirable. Change-Id: If0f93461f35902194cdfa9043ccd2d271ef8dedb Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
e52c1b40ad
commit
d24d1770aa
@ -51,9 +51,9 @@ static unsigned int get_input_boost_freq(struct cpufreq_policy *policy)
|
||||
unsigned int freq;
|
||||
|
||||
if (cpumask_test_cpu(policy->cpu, cpu_lp_mask))
|
||||
freq = CONFIG_INPUT_BOOST_FREQ_LP;
|
||||
freq = max(CONFIG_INPUT_BOOST_FREQ_LP, CONFIG_MIN_FREQ_LP);
|
||||
else
|
||||
freq = CONFIG_INPUT_BOOST_FREQ_PERF;
|
||||
freq = max(CONFIG_INPUT_BOOST_FREQ_PERF, CONFIG_MIN_FREQ_PERF);
|
||||
|
||||
return min(freq, policy->max);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user