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

Skip to content
Commit e9b2a737 authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar Committed by Satya Durga Srinivasu Prabhala
Browse files

sched/fair: Skip pulling tasks from cpu marked for active balancing



Idle/newly idle cpu finds busiest runqueue to pull tasks from it.
It is possible that, the busiest cpu might have already marked for
active_balance by other cpu. But current balancing cpu still finds
it as busiest cpu and tries to pull tasks from it.

Which may have subtle impact, if higher capacity cpu has marked busy
cpu for active balance, and before active balance kicks in by the
busy cpu, the lower capacity cpu pulling tasks from the busy cpu
ruins the higher capacity cpu's active balance.

Fix this, by skipping the cpu which is undergoing active_balance
for finding busiest queue and do not detach tasks if busiest cpu
marked for active balance.

Change-Id: If3ebe1a026cf62f055bb42c3f3ed62f3624c704a
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 19135a4f
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