aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--block/blk.h4
-rw-r--r--kernel/sched.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/block/blk.h b/block/blk.h
index d2e49af90db5..6e1ed40534e9 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -99,8 +99,8 @@ static inline int queue_congestion_off_threshold(struct request_queue *q)
99static inline int blk_cpu_to_group(int cpu) 99static inline int blk_cpu_to_group(int cpu)
100{ 100{
101#ifdef CONFIG_SCHED_MC 101#ifdef CONFIG_SCHED_MC
102 cpumask_t mask = cpu_coregroup_map(cpu); 102 const struct cpumask *mask = cpu_coregroup_mask(cpu);
103 return first_cpu(mask); 103 return cpumask_first(mask);
104#elif defined(CONFIG_SCHED_SMT) 104#elif defined(CONFIG_SCHED_SMT)
105 return first_cpu(per_cpu(cpu_sibling_map, cpu)); 105 return first_cpu(per_cpu(cpu_sibling_map, cpu));
106#else 106#else
diff --git a/kernel/sched.c b/kernel/sched.c
index d2d16d1273b1..42929239830f 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7119,7 +7119,7 @@ cpu_to_phys_group(int cpu, const cpumask_t *cpu_map, struct sched_group **sg,
7119{ 7119{
7120 int group; 7120 int group;
7121#ifdef CONFIG_SCHED_MC 7121#ifdef CONFIG_SCHED_MC
7122 *mask = cpu_coregroup_map(cpu); 7122 *mask = *cpu_coregroup_mask(cpu);
7123 cpus_and(*mask, *mask, *cpu_map); 7123 cpus_and(*mask, *mask, *cpu_map);
7124 group = first_cpu(*mask); 7124 group = first_cpu(*mask);
7125#elif defined(CONFIG_SCHED_SMT) 7125#elif defined(CONFIG_SCHED_SMT)
@@ -7485,7 +7485,7 @@ static int __build_sched_domains(const cpumask_t *cpu_map,
7485 sd = &per_cpu(core_domains, i); 7485 sd = &per_cpu(core_domains, i);
7486 SD_INIT(sd, MC); 7486 SD_INIT(sd, MC);
7487 set_domain_attribute(sd, attr); 7487 set_domain_attribute(sd, attr);
7488 sd->span = cpu_coregroup_map(i); 7488 sd->span = *cpu_coregroup_mask(i);
7489 cpus_and(sd->span, sd->span, *cpu_map); 7489 cpus_and(sd->span, sd->span, *cpu_map);
7490 sd->parent = p; 7490 sd->parent = p;
7491 p->child = sd; 7491 p->child = sd;
@@ -7528,7 +7528,7 @@ static int __build_sched_domains(const cpumask_t *cpu_map,
7528 SCHED_CPUMASK_VAR(this_core_map, allmasks); 7528 SCHED_CPUMASK_VAR(this_core_map, allmasks);
7529 SCHED_CPUMASK_VAR(send_covered, allmasks); 7529 SCHED_CPUMASK_VAR(send_covered, allmasks);
7530 7530
7531 *this_core_map = cpu_coregroup_map(i); 7531 *this_core_map = *cpu_coregroup_mask(i);
7532 cpus_and(*this_core_map, *this_core_map, *cpu_map); 7532 cpus_and(*this_core_map, *this_core_map, *cpu_map);
7533 if (i != first_cpu(*this_core_map)) 7533 if (i != first_cpu(*this_core_map))
7534 continue; 7534 continue;