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

Commit 694f5a11 authored by Michael Neuling's avatar Michael Neuling Committed by Ingo Molnar
Browse files

sched: Fix fix_small_capacity



The CPU power test is the wrong way around in fix_small_capacity.

This was due to a small changes made in the posted patch on lkml to what
was was taken upstream.

This patch fixes asymmetric packing for POWER7.

Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <12629.1276124617@neuling.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4cb6948e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2354,7 +2354,7 @@ fix_small_capacity(struct sched_domain *sd, struct sched_group *group)
	/*
	 * If ~90% of the cpu_power is still there, we're good.
	 */
	if (group->cpu_power * 32 < group->cpu_power_orig * 29)
	if (group->cpu_power * 32 > group->cpu_power_orig * 29)
		return 1;

	return 0;