Skip to content

Commit 55939cf

Browse files
glemcohtejun
authored andcommitted
cgroup/cpuset: Rename update_unbound_workqueue_cpumask() to update_isolation_cpumasks()
update_unbound_workqueue_cpumask() updates unbound workqueues settings when there's a change in isolated CPUs, but it can be used for other subsystems requiring updated when isolated CPUs change. Generalise the name to update_isolation_cpumasks() to prepare for other functions unrelated to workqueues to be called in that spot. [longman: Change the function name to update_isolation_cpumasks()] Acked-by: Frederic Weisbecker <frederic@kernel.org> Acked-by: Waiman Long <longman@redhat.com> Signed-off-by: Gabriele Monaco <gmonaco@redhat.com> Signed-off-by: Waiman Long <longman@redhat.com> Reviewed-by: Chen Ridong <chenridong@huaweicloud.com> Reviewed-by: Chen Ridong <chenridong@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent d245698 commit 55939cf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

kernel/cgroup/cpuset.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ static bool partition_xcpus_del(int old_prs, struct cpuset *parent,
13931393
return isolcpus_updated;
13941394
}
13951395

1396-
static void update_unbound_workqueue_cpumask(bool isolcpus_updated)
1396+
static void update_isolation_cpumasks(bool isolcpus_updated)
13971397
{
13981398
int ret;
13991399

@@ -1557,7 +1557,7 @@ static int remote_partition_enable(struct cpuset *cs, int new_prs,
15571557
list_add(&cs->remote_sibling, &remote_children);
15581558
cpumask_copy(cs->effective_xcpus, tmp->new_cpus);
15591559
spin_unlock_irq(&callback_lock);
1560-
update_unbound_workqueue_cpumask(isolcpus_updated);
1560+
update_isolation_cpumasks(isolcpus_updated);
15611561
cpuset_force_rebuild();
15621562
cs->prs_err = 0;
15631563

@@ -1598,7 +1598,7 @@ static void remote_partition_disable(struct cpuset *cs, struct tmpmasks *tmp)
15981598
compute_excpus(cs, cs->effective_xcpus);
15991599
reset_partition_data(cs);
16001600
spin_unlock_irq(&callback_lock);
1601-
update_unbound_workqueue_cpumask(isolcpus_updated);
1601+
update_isolation_cpumasks(isolcpus_updated);
16021602
cpuset_force_rebuild();
16031603

16041604
/*
@@ -1667,7 +1667,7 @@ static void remote_cpus_update(struct cpuset *cs, struct cpumask *xcpus,
16671667
if (xcpus)
16681668
cpumask_copy(cs->exclusive_cpus, xcpus);
16691669
spin_unlock_irq(&callback_lock);
1670-
update_unbound_workqueue_cpumask(isolcpus_updated);
1670+
update_isolation_cpumasks(isolcpus_updated);
16711671
if (adding || deleting)
16721672
cpuset_force_rebuild();
16731673

@@ -2011,7 +2011,7 @@ static int update_parent_effective_cpumask(struct cpuset *cs, int cmd,
20112011
tmp->delmask);
20122012

20132013
spin_unlock_irq(&callback_lock);
2014-
update_unbound_workqueue_cpumask(isolcpus_updated);
2014+
update_isolation_cpumasks(isolcpus_updated);
20152015

20162016
if ((old_prs != new_prs) && (cmd == partcmd_update))
20172017
update_partition_exclusive_flag(cs, new_prs);
@@ -3029,7 +3029,7 @@ static int update_prstate(struct cpuset *cs, int new_prs)
30293029
else if (isolcpus_updated)
30303030
isolated_cpus_update(old_prs, new_prs, cs->effective_xcpus);
30313031
spin_unlock_irq(&callback_lock);
3032-
update_unbound_workqueue_cpumask(isolcpus_updated);
3032+
update_isolation_cpumasks(isolcpus_updated);
30333033

30343034
/* Force update if switching back to member & update effective_xcpus */
30353035
update_cpumasks_hier(cs, &tmpmask, !new_prs);

0 commit comments

Comments
 (0)