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

Commit 9212f0e4 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Alistair Delva
Browse files

Revert "ANDROID: sched: Enable idle balance to pull single task towards cpu with higher capacity"



This reverts commit f2fce2f4.

We want to back-out the eas-dev merge that happened in the tree after
5.3-rc1 as those patches "should" all be in Linus's tree now.

This is done to handle the merge conflicts with 5.4-rc1.

Cc: Todd Kjos <tkjos@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: If826caad4ed3ffb42e9401ba8863669b999bbffb
parent 39026008
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -8809,13 +8809,6 @@ static int need_active_balance(struct lb_env *env)
	if (voluntary_active_balance(env))
		return 1;

	if ((capacity_of(env->src_cpu) < capacity_of(env->dst_cpu)) &&
				env->src_rq->cfs.h_nr_running == 1 &&
				cpu_overutilized(env->src_cpu) &&
				!cpu_overutilized(env->dst_cpu)) {
		return 1;
	}

	return unlikely(sd->nr_balance_failed > sd->cache_nice_tries+2);
}