Skip to content

Commit d128130

Browse files
jlelliPeter Zijlstra
authored andcommitted
sched/topology: Stop exposing partition_sched_domains_locked
The are no callers of partition_sched_domains_locked() outside topology.c. Stop exposing such function. Suggested-by: Waiman Long <[email protected]> Signed-off-by: Juri Lelli <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[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 ce9b3f9 commit d128130

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

include/linux/sched/topology.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ static inline struct cpumask *sched_domain_span(struct sched_domain *sd)
168168

169169
extern void dl_rebuild_rd_accounting(void);
170170

171-
extern void partition_sched_domains_locked(int ndoms_new,
172-
cpumask_var_t doms_new[],
173-
struct sched_domain_attr *dattr_new);
174-
175171
extern void partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
176172
struct sched_domain_attr *dattr_new);
177173

@@ -212,12 +208,6 @@ extern void __init set_sched_topology(struct sched_domain_topology_level *tl);
212208

213209
struct sched_domain_attr;
214210

215-
static inline void
216-
partition_sched_domains_locked(int ndoms_new, cpumask_var_t doms_new[],
217-
struct sched_domain_attr *dattr_new)
218-
{
219-
}
220-
221211
static inline void
222212
partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
223213
struct sched_domain_attr *dattr_new)

kernel/sched/topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2688,7 +2688,7 @@ static int dattrs_equal(struct sched_domain_attr *cur, int idx_cur,
26882688
*
26892689
* Call with hotplug lock and sched_domains_mutex held
26902690
*/
2691-
void partition_sched_domains_locked(int ndoms_new, cpumask_var_t doms_new[],
2691+
static void partition_sched_domains_locked(int ndoms_new, cpumask_var_t doms_new[],
26922692
struct sched_domain_attr *dattr_new)
26932693
{
26942694
bool __maybe_unused has_eas = false;

0 commit comments

Comments
 (0)