Skip to content

Commit ce9b3f9

Browse files
jlelliPeter Zijlstra
authored andcommitted
cgroup/cpuset: Remove partition_and_rebuild_sched_domains
partition_and_rebuild_sched_domains() and partition_sched_domains() are now equivalent. Remove the former as a nice clean up. Suggested-by: Waiman Long <llong@redhat.com> Signed-off-by: Juri Lelli <juri.lelli@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Waiman Long <llong@redhat.com> Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com> Reviewed-by: Valentin Schneider <vschneid@redhat.com> Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com> Tested-by: Waiman Long <longman@redhat.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Dietmar Eggemann <dietmar.eggemann@arm.com> Link: https://lore.kernel.org/r/Z9MR4ryNDJZDzsSG@jlelli-thinkpadt14gen4.remote.csb
1 parent d735bab commit ce9b3f9

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

kernel/cgroup/cpuset.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -993,15 +993,6 @@ void dl_rebuild_rd_accounting(void)
993993
rcu_read_unlock();
994994
}
995995

996-
static void
997-
partition_and_rebuild_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
998-
struct sched_domain_attr *dattr_new)
999-
{
1000-
sched_domains_mutex_lock();
1001-
partition_sched_domains_locked(ndoms_new, doms_new, dattr_new);
1002-
sched_domains_mutex_unlock();
1003-
}
1004-
1005996
/*
1006997
* Rebuild scheduler domains.
1007998
*
@@ -1063,7 +1054,7 @@ void rebuild_sched_domains_locked(void)
10631054
ndoms = generate_sched_domains(&doms, &attr);
10641055

10651056
/* Have scheduler rebuild the domains */
1066-
partition_and_rebuild_sched_domains(ndoms, doms, attr);
1057+
partition_sched_domains(ndoms, doms, attr);
10671058
}
10681059
#else /* !CONFIG_SMP */
10691060
void rebuild_sched_domains_locked(void)

0 commit comments

Comments
 (0)