Skip to content

Commit 34929a0

Browse files
jlelliPeter Zijlstra
authored andcommitted
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 <[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: 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 d128130 commit 34929a0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

include/linux/cpuset.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ static inline int cpuset_do_page_mem_spread(void)
125125

126126
extern bool current_cpuset_is_being_rebound(void);
127127

128+
extern void dl_rebuild_rd_accounting(void);
128129
extern void rebuild_sched_domains(void);
129130

130131
extern void cpuset_print_current_mems_allowed(void);
@@ -260,6 +261,10 @@ static inline bool current_cpuset_is_being_rebound(void)
260261
return false;
261262
}
262263

264+
static inline void dl_rebuild_rd_accounting(void)
265+
{
266+
}
267+
263268
static inline void rebuild_sched_domains(void)
264269
{
265270
partition_sched_domains(1, NULL, NULL);

include/linux/sched/topology.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ static inline struct cpumask *sched_domain_span(struct sched_domain *sd)
166166
return to_cpumask(sd->span);
167167
}
168168

169-
extern void dl_rebuild_rd_accounting(void);
170-
171169
extern void partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
172170
struct sched_domain_attr *dattr_new);
173171

0 commit comments

Comments
 (0)