Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c3a60e3 authored by Joonwoo Park's avatar Joonwoo Park
Browse files

sched: EAS: kill incorrect nohz idle cpu kick



EAS won't allow NOHZ idle balancer until CPU's over utilized.  However
nohz_kick_needed() can return true.  This causes idle CPU wake up for
nothing.

Change-Id: I6e548442e29e4f85cda695e4c7101dd591b12fe6
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent e21dd3c4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -10316,9 +10316,8 @@ static inline bool nohz_kick_needed(struct rq *rq, int *type)
	if (time_before(now, nohz.next_balance))
		return false;

	if (rq->nr_running >= 2 &&
	    (!energy_aware() || cpu_overutilized(cpu)))
		return true;
	if (energy_aware())
		return rq->nr_running >= 2 && cpu_overutilized(cpu);

#ifndef CONFIG_SCHED_HMP
	rcu_read_lock();