aboutsummaryrefslogtreecommitdiff
path: root/kernel/sched/fair.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2012-05-31 12:05:32 +0200
committerIngo Molnar <mingo@kernel.org>2012-06-06 16:52:27 +0200
commitc3decf0dfbc95736b7c0ab68fa4e5854c4734da9 (patch)
treec21748af2b4c7e4b738cefd2076c1ccc6ed2c664 /kernel/sched/fair.c
parentc1174876874dcf8986806e4dad3d7d07af20b439 (diff)
downloadlinaro-lsk-c3decf0dfbc95736b7c0ab68fa4e5854c4734da9.tar.gz
sched: Always initialize cpu-power
Often when we run into mis-shapen topologies the balance iteration fails to update the cpu power properly and we'll end up in /0 traps. Always initialize the cpu-power to a semi-sane value so that we can at least boot the machine, even if the load-balancer might not function correctly. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/n/tip-3lbhyj25sr169ha7z3qht5na@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
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 54cbaa4e7b3..c9fd6d673d0 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -3602,7 +3602,7 @@ void update_group_power(struct sched_domain *sd, int cpu)
} while (group != child->groups);
}
- sdg->sgp->power = power;
+ sdg->sgp->power_orig = sdg->sgp->power = power;
}
/*