diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 0a76d0b6f215..5dabd80c3c15 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -7249,7 +7249,7 @@ cpu_to_core_group(int cpu, const struct cpumask *cpu_map, | |||
7249 | { | 7249 | { |
7250 | int group; | 7250 | int group; |
7251 | 7251 | ||
7252 | cpumask_and(mask, &per_cpu(cpu_sibling_map, cpu), cpu_map); | 7252 | cpumask_and(mask, topology_thread_cpumask(cpu), cpu_map); |
7253 | group = cpumask_first(mask); | 7253 | group = cpumask_first(mask); |
7254 | if (sg) | 7254 | if (sg) |
7255 | *sg = &per_cpu(sched_group_core, group).sg; | 7255 | *sg = &per_cpu(sched_group_core, group).sg; |
@@ -7278,7 +7278,7 @@ cpu_to_phys_group(int cpu, const struct cpumask *cpu_map, | |||
7278 | cpumask_and(mask, cpu_coregroup_mask(cpu), cpu_map); | 7278 | cpumask_and(mask, cpu_coregroup_mask(cpu), cpu_map); |
7279 | group = cpumask_first(mask); | 7279 | group = cpumask_first(mask); |
7280 | #elif defined(CONFIG_SCHED_SMT) | 7280 | #elif defined(CONFIG_SCHED_SMT) |
7281 | cpumask_and(mask, &per_cpu(cpu_sibling_map, cpu), cpu_map); | 7281 | cpumask_and(mask, topology_thread_cpumask(cpu), cpu_map); |
7282 | group = cpumask_first(mask); | 7282 | group = cpumask_first(mask); |
7283 | #else | 7283 | #else |
7284 | group = cpu; | 7284 | group = cpu; |
@@ -7621,7 +7621,7 @@ static int __build_sched_domains(const struct cpumask *cpu_map, | |||
7621 | SD_INIT(sd, SIBLING); | 7621 | SD_INIT(sd, SIBLING); |
7622 | set_domain_attribute(sd, attr); | 7622 | set_domain_attribute(sd, attr); |
7623 | cpumask_and(sched_domain_span(sd), | 7623 | cpumask_and(sched_domain_span(sd), |
7624 | &per_cpu(cpu_sibling_map, i), cpu_map); | 7624 | topology_thread_cpumask(i), cpu_map); |
7625 | sd->parent = p; | 7625 | sd->parent = p; |
7626 | p->child = sd; | 7626 | p->child = sd; |
7627 | cpu_to_cpu_group(i, cpu_map, &sd->groups, tmpmask); | 7627 | cpu_to_cpu_group(i, cpu_map, &sd->groups, tmpmask); |
@@ -7632,7 +7632,7 @@ static int __build_sched_domains(const struct cpumask *cpu_map, | |||
7632 | /* Set up CPU (sibling) groups */ | 7632 | /* Set up CPU (sibling) groups */ |
7633 | for_each_cpu(i, cpu_map) { | 7633 | for_each_cpu(i, cpu_map) { |
7634 | cpumask_and(this_sibling_map, | 7634 | cpumask_and(this_sibling_map, |
7635 | &per_cpu(cpu_sibling_map, i), cpu_map); | 7635 | topology_thread_cpumask(i), cpu_map); |
7636 | if (i != cpumask_first(this_sibling_map)) | 7636 | if (i != cpumask_first(this_sibling_map)) |
7637 | continue; | 7637 | continue; |
7638 | 7638 | ||