mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
cpu-boost: Avoid boosting over user set max freq
It was negating the user set max cpu freq and boosting over it if for example input_boost_freq > max_freq, so fix it Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com> Signed-off-by: Forenche <prahul2003@gmail.com>
This commit is contained in:
parent
2c794a89f0
commit
3f7dd055ae
@ -133,6 +133,8 @@ static int boost_adjust_notify(struct notifier_block *nb, unsigned long val,
|
||||
if (!ib_min)
|
||||
break;
|
||||
|
||||
ib_min = min(ib_min, policy->max);
|
||||
|
||||
pr_debug("CPU%u policy min before boost: %u kHz\n",
|
||||
cpu, policy->min);
|
||||
pr_debug("CPU%u boost min: %u kHz\n", cpu, ib_min);
|
||||
|
Loading…
x
Reference in New Issue
Block a user