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:
Francisco Franco 2017-01-26 20:09:28 +00:00 committed by Forenche
parent 2c794a89f0
commit 3f7dd055ae
No known key found for this signature in database
GPG Key ID: 1337D655BAFE85E2

View File

@ -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);