mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
sched: fix sched_balance_self() smp group balancing
Finding the least idle cpu is more accurate when done with updated shares. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> Cc: Mike Galbraith <efault@gmx.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
3e5459b4be
commit
039a1c41b3
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue