summaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2010-06-10 01:03:37 +0200
committerIngo Molnar <mingo@elte.hu>2010-06-18 10:46:54 +0200
commit694f5a1112959a6996cabdb6f8d3003e87dac8a7 (patch)
tree051bcf1e25b185435baf0e5f1dfd81e63c62fbaf /kernel/sched_fair.c
parentMerge commit 'v2.6.35-rc3' into sched/core (diff)
downloadlinux-694f5a1112959a6996cabdb6f8d3003e87dac8a7.tar.xz
linux-694f5a1112959a6996cabdb6f8d3003e87dac8a7.zip
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: 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>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 593424f91a8a..e82c5722dbe3 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -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;