提交 039a1c41 编写于 作者: P Peter Zijlstra 提交者: Ingo Molnar

sched: fix sched_balance_self() smp group balancing

Finding the least idle cpu is more accurate when done with updated shares.
Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Cc: Mike Galbraith <efault@gmx.de>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 3e5459b4
......@@ -2128,6 +2128,9 @@ static int sched_balance_self(int cpu, int flag)
sd = tmp;
}
if (sd)
update_shares(sd);
while (sd) {
cpumask_t span, tmpmask;
struct sched_group *group;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册