diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index b43c234c1160..cf643f3fd99a 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -369,13 +369,13 @@ static inline bool is_in_v2_mode(void) * until we find one that does have some online cpus. * * One way or another, we guarantee to return some non-empty subset - * of cpu_online_mask. + * of cpu_active_mask. * * Call with callback_lock or cpuset_mutex held. */ static void guarantee_online_cpus(struct cpuset *cs, struct cpumask *pmask) { - while (!cpumask_intersects(cs->effective_cpus, cpu_online_mask)) { + while (!cpumask_intersects(cs->effective_cpus, cpu_active_mask)) { cs = parent_cs(cs); if (unlikely(!cs)) { /* @@ -385,11 +385,11 @@ static void guarantee_online_cpus(struct cpuset *cs, struct cpumask *pmask) * cpuset's effective_cpus is on its way to be * identical to cpu_online_mask. */ - cpumask_copy(pmask, cpu_online_mask); + cpumask_copy(pmask, cpu_active_mask); return; } } - cpumask_and(pmask, cs->effective_cpus, cpu_online_mask); + cpumask_and(pmask, cs->effective_cpus, cpu_active_mask); } /*