No need to kick the kthread if we are already at the lowest OPP.
Signed-off-by: Juri Lelli juri.lelli@arm.com --- kernel/sched/energy_model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/energy_model.c b/kernel/sched/energy_model.c index df18dac..960c2d0 100644 --- a/kernel/sched/energy_model.c +++ b/kernel/sched/energy_model.c @@ -222,7 +222,7 @@ void arch_eval_cpu_freq(struct cpumask *update_cpus) * hold the write lock? */ atomic_set(&em->need_wake_task, 1); - } else if (max_util < em->down_threshold[index]) { + } else if (max_util < em->down_threshold[index] && index != 0) { /* write em->target_freq with read lock held */ atomic_long_set(&em->target_freq, policy->cur - 1); /* -- 2.2.2