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 <[email protected]> Signed-off-by: Juri Lelli <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Waiman Long <[email protected]> Reviewed-by: Shrikanth Hegde <[email protected]> Reviewed-by: Valentin Schneider <[email protected]> Reviewed-by: Dietmar Eggemann <[email protected]> Tested-by: Waiman Long <[email protected]> Tested-by: Jon Hunter <[email protected]> Tested-by: Dietmar Eggemann <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d735bab commit ce9b3f9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

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)