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: Joonwoo Park <joonwoop@codeaurora.org>
This commit is contained in:
Joonwoo Park 2017-03-07 18:08:24 -08:00
parent 11b618a0b2
commit 3989a247e2

View file

@ -9768,12 +9768,12 @@ static inline bool nohz_kick_needed(struct rq *rq)
return true;
/* Do idle load balance if there have misfit task */
if (energy_aware() && rq->misfit_task)
return true;
if (energy_aware())
return rq->misfit_task;
rcu_read_lock();
sd = rcu_dereference(per_cpu(sd_busy, cpu));
if (sd && !energy_aware()) {
if (sd) {
sgc = sd->groups->sgc;
nr_busy = atomic_read(&sgc->nr_busy_cpus);