Skip to content
Commit 6fc92e27 authored by Vincent Guittot's avatar Vincent Guittot Committed by Valentin Schneider
Browse files

sched/fair: use rq->nr_running when balancing load



cfs load_balance only takes care of CFS tasks whereas CPUs can be used by
other scheduling class. Typically, a CFS task preempted by a RT or deadline
task will not get a chance to be pulled on another CPU because the
load_balance doesn't take into account tasks from other classes.
Add sum of nr_running in the statistics and use it to detect such
situation.

Signed-off-by: Vincent Guittot's avatarVincent Guittot <vincent.guittot@linaro.org>
parent a2a710a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment