Skip to content

Commit

Permalink
sched: Fix fix_small_capacity
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Neuling authored and Ingo Molnar committed Jun 18, 2010
1 parent 4cb6948 commit 694f5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 694f5a1

Please sign in to comment.