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.

include/{topology,cpuset}: Move dl_rebuild_rd_accounting to cpuset.h

dl_rebuild_rd_accounting() is defined in cpuset.c, so it makes more
sense to move related declarations to cpuset.h.

Implement the move.

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: 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/Z9MSOVMpU7jpVrMU@jlelli-thinkpadt14gen4.remote.csb

authored by

Juri Lelli and committed by
Peter Zijlstra
34929a07 d128130f

+5 -2
+5
include/linux/cpuset.h
··· 125 125 126 126 extern bool current_cpuset_is_being_rebound(void); 127 127 128 + extern void dl_rebuild_rd_accounting(void); 128 129 extern void rebuild_sched_domains(void); 129 130 130 131 extern void cpuset_print_current_mems_allowed(void); ··· 259 258 static inline bool current_cpuset_is_being_rebound(void) 260 259 { 261 260 return false; 261 + } 262 + 263 + static inline void dl_rebuild_rd_accounting(void) 264 + { 262 265 } 263 266 264 267 static inline void rebuild_sched_domains(void)
-2
include/linux/sched/topology.h
··· 166 166 return to_cpumask(sd->span); 167 167 } 168 168 169 - extern void dl_rebuild_rd_accounting(void); 170 - 171 169 extern void partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[], 172 170 struct sched_domain_attr *dattr_new); 173 171