sched: Fix fix_small_capacity
authorMichael Neuling <mikey@neuling.org>
Wed, 9 Jun 2010 23:03:37 +0000 (09:03 +1000)
committerIngo Molnar <mingo@elte.hu>
Fri, 18 Jun 2010 08:46:54 +0000 (10:46 +0200)
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: Michael Neuling <mikey@neuling.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <12629.1276124617@neuling.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c

index 593424f..e82c572 100644 (file)
@@ -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;