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

Commit e52c5097 authored by Leo Yan's avatar Leo Yan Committed by Joonwoo Park
Browse files

sched/fair: fix to set sgs->group_misfit_task



In current code after meets two conditions to set
sgs->group_misfit_task:

- Condition 1: the CPU is overutilized;
- Condition 2: rq->misfit is set;

But if we think about there have corner case that CPU level signal has
not been increased over tipping point but it has one big task is
migrated onto this CPU so rq->misfit flag has been set. For this case,
we will miss to set sgs->group_misfit_task due condition 1 should take
very long time to become true.

This patch is to directly check if rq->misfit flag has been set and then
directly to set sgs->group_misfit_task. So give more chance for misfit
task migration.

Change-Id: If5723788390864a130f29d81529f8310efc76299
Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
Patch-mainline: eas-dev @ 12/22/16, 15:58
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 5bc59028
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment