Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <llong@redhat.com>
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
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/Z9MSC96a8FcqWV3G@jlelli-thinkpadt14gen4.remote.csb

authored by

Juri Lelli and committed by
Peter Zijlstra
d128130f ce9b3f93

+1 -11
-10
include/linux/sched/topology.h
··· 168 168 169 169 extern void dl_rebuild_rd_accounting(void); 170 170 171 - extern void partition_sched_domains_locked(int ndoms_new, 172 - cpumask_var_t doms_new[], 173 - struct sched_domain_attr *dattr_new); 174 - 175 171 extern void partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[], 176 172 struct sched_domain_attr *dattr_new); 177 173 ··· 207 211 #else /* CONFIG_SMP */ 208 212 209 213 struct sched_domain_attr; 210 - 211 - static inline void 212 - partition_sched_domains_locked(int ndoms_new, cpumask_var_t doms_new[], 213 - struct sched_domain_attr *dattr_new) 214 - { 215 - } 216 214 217 215 static inline void 218 216 partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
+1 -1
kernel/sched/topology.c
··· 2688 2688 * 2689 2689 * Call with hotplug lock and sched_domains_mutex held 2690 2690 */ 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[], 2692 2692 struct sched_domain_attr *dattr_new) 2693 2693 { 2694 2694 bool __maybe_unused has_eas = false;