diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 0cc913a8554f..4956ed092838 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6271,6 +6271,9 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu) | |||
6271 | struct rq *rq = cpu_rq(cpu); | 6271 | struct rq *rq = cpu_rq(cpu); |
6272 | struct sched_domain *tmp; | 6272 | struct sched_domain *tmp; |
6273 | 6273 | ||
6274 | for (tmp = sd; tmp; tmp = tmp->parent) | ||
6275 | tmp->span_weight = cpumask_weight(sched_domain_span(tmp)); | ||
6276 | |||
6274 | /* Remove the sched domains which do not contribute to scheduling. */ | 6277 | /* Remove the sched domains which do not contribute to scheduling. */ |
6275 | for (tmp = sd; tmp; ) { | 6278 | for (tmp = sd; tmp; ) { |
6276 | struct sched_domain *parent = tmp->parent; | 6279 | struct sched_domain *parent = tmp->parent; |