Skip to content

Commit f23cb0c

Browse files
Chen Ridonghtejun
authored andcommitted
cpuset: remove need_rebuild_sched_domains
Previously, update_cpumasks_hier() used need_rebuild_sched_domains to decide whether to invoke rebuild_sched_domains_locked(). Now that rebuild_sched_domains_locked() only sets force_rebuild, the flag is redundant. Hence, remove it. Signed-off-by: Chen Ridong <[email protected]> Reviewed-by: Waiman Long <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 648d43d commit f23cb0c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

kernel/cgroup/cpuset.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,6 @@ static void update_cpumasks_hier(struct cpuset *cs, struct tmpmasks *tmp,
21842184
{
21852185
struct cpuset *cp;
21862186
struct cgroup_subsys_state *pos_css;
2187-
bool need_rebuild_sched_domains = false;
21882187
int old_prs, new_prs;
21892188

21902189
rcu_read_lock();
@@ -2348,15 +2347,12 @@ static void update_cpumasks_hier(struct cpuset *cs, struct tmpmasks *tmp,
23482347
if (!cpumask_empty(cp->cpus_allowed) &&
23492348
is_sched_load_balance(cp) &&
23502349
(!cpuset_v2() || is_partition_valid(cp)))
2351-
need_rebuild_sched_domains = true;
2350+
cpuset_force_rebuild();
23522351

23532352
rcu_read_lock();
23542353
css_put(&cp->css);
23552354
}
23562355
rcu_read_unlock();
2357-
2358-
if (need_rebuild_sched_domains)
2359-
cpuset_force_rebuild();
23602356
}
23612357

23622358
/**

0 commit comments

Comments
 (0)