diff options
author | Peter Zijlstra <peterz@infradead.org> | 2013-12-11 10:09:53 (GMT) |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-03-12 12:25:38 (GMT) |
commit | 8dc051a7e50b0bc7eae9a640334258e04a6d2fdd (patch) | |
tree | f58e672a09b1a741067bba2166c9900de65c57e7 /kernel/sched | |
parent | a2198407845fa9d85b590eafafacf3b6a82d3528 (diff) | |
download | linux-fsl-qoriq-8dc051a7e50b0bc7eae9a640334258e04a6d2fdd.tar.xz |
sched: Initialize power_orig for overlapping groups
commit 8e8339a3a1069141985daaa2521ba304509ddecd upstream.
Yinghai reported that he saw a /0 in sg_capacity on his EX parts.
Make sure to always initialize power_orig now that we actually use it.
Ideally build_sched_domains() -> init_sched_groups_power() would also
initialize this; but for some yet unexplained reason some setups seem
to miss updates there.
Reported-by: Yinghai Lu <yinghai@kernel.org>
Tested-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-l8ng2m9uml6fhibln8wqpom7@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index bc2f26d..1313c6c 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5332,6 +5332,7 @@ build_overlap_sched_groups(struct sched_domain *sd, int cpu) * die on a /0 trap. */ sg->sgp->power = SCHED_POWER_SCALE * cpumask_weight(sg_span); + sg->sgp->power_orig = sg->sgp->power; /* * Make sure the first group of this domain contains the |