]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cgroup/cpuset: Remove partition_and_rebuild_sched_domains
authorJuri Lelli <juri.lelli@redhat.com>
Thu, 13 Mar 2025 17:12:02 +0000 (18:12 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Mar 2025 10:23:42 +0000 (11:23 +0100)
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
kernel/cgroup/cpuset.c

index 1892dc8cd2119180100a005019c40e5c21edf636..a51099e5d5871b9413d63911cef3e8e53ad8ae68 100644 (file)
@@ -993,15 +993,6 @@ void dl_rebuild_rd_accounting(void)
        rcu_read_unlock();
 }
 
-static void
-partition_and_rebuild_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
-                                   struct sched_domain_attr *dattr_new)
-{
-       sched_domains_mutex_lock();
-       partition_sched_domains_locked(ndoms_new, doms_new, dattr_new);
-       sched_domains_mutex_unlock();
-}
-
 /*
  * Rebuild scheduler domains.
  *
@@ -1063,7 +1054,7 @@ void rebuild_sched_domains_locked(void)
        ndoms = generate_sched_domains(&doms, &attr);
 
        /* Have scheduler rebuild the domains */
-       partition_and_rebuild_sched_domains(ndoms, doms, attr);
+       partition_sched_domains(ndoms, doms, attr);
 }
 #else /* !CONFIG_SMP */
 void rebuild_sched_domains_locked(void)