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

Commit fcfb6e41 authored by Chris Redpath's avatar Chris Redpath
Browse files

ANDROID: sched/fair: Also do misfit in overloaded groups



If we can classify the group as overloaded, that overrides
any classification as misfit but we may still have misfit
tasks present. Check the rq we're looking at to see if
this is the case.

Signed-off-by: default avatarChris Redpath <chris.redpath@arm.com>
[Removed stray reference to rq_has_misfit]
Signed-off-by: default avatarValentin Schneider <valentin.schneider@arm.com>
Change-Id: Ida8eb66aa625e34de3fe2ee1b0dd8a78926273d8
parent 37e94467
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -9854,6 +9854,10 @@ static int need_active_balance(struct lb_env *env)
	if (env->src_grp_type == group_misfit_task)
		return 1;

	if (env->src_grp_type == group_overloaded &&
	    env->src_rq->misfit_task_load)
		return 1;

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