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.

Change-Id: Ida8eb66aa625e34de3fe2ee1b0dd8a78926273d8
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
[Removed stray reference to rq_has_misfit]
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Quentin Perret <quentin.perret@arm.com>
This commit is contained in:
Chris Redpath 2018-06-05 12:21:33 +01:00 committed by Quentin Perret
parent 67de53b177
commit c3a40105da

View File

@ -8782,6 +8782,10 @@ static int need_active_balance(struct lb_env *env)
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);
}