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

Commit 039a1c41 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar
Browse files

sched: fix sched_balance_self() smp group balancing



Finding the least idle cpu is more accurate when done with updated shares.

Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Cc: Mike Galbraith <efault@gmx.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 3e5459b4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;