Skip to content

Commit 97956dd

Browse files
deggemanPeter Zijlstra
authored andcommitted
sched/fair: Remove cfs_rq_tg_path()
cfs_rq_tg_path() is used by a tracepoint-to traceevent (tp-2-te) converter to format the path of a taskgroup or autogroup respectively. It doesn't have any in-kernel users after the removal of the sched_trace_cfs_rq_path() helper function. cfs_rq_tg_path() can be coded in a tp-2-te converter. Remove it from kernel/sched/fair.c. Signed-off-by: Dietmar Eggemann <[email protected]> Signed-off-by: Qais Yousef <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 50e7b41 commit 97956dd

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

kernel/sched/fair.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -313,19 +313,6 @@ const struct sched_class fair_sched_class;
313313
#define for_each_sched_entity(se) \
314314
for (; se; se = se->parent)
315315

316-
static inline void cfs_rq_tg_path(struct cfs_rq *cfs_rq, char *path, int len)
317-
{
318-
if (!path)
319-
return;
320-
321-
if (cfs_rq && task_group_is_autogroup(cfs_rq->tg))
322-
autogroup_path(cfs_rq->tg, path, len);
323-
else if (cfs_rq && cfs_rq->tg->css.cgroup)
324-
cgroup_path(cfs_rq->tg->css.cgroup, path, len);
325-
else
326-
strlcpy(path, "(null)", len);
327-
}
328-
329316
static inline bool list_add_leaf_cfs_rq(struct cfs_rq *cfs_rq)
330317
{
331318
struct rq *rq = rq_of(cfs_rq);
@@ -493,12 +480,6 @@ static int se_is_idle(struct sched_entity *se)
493480
#define for_each_sched_entity(se) \
494481
for (; se; se = NULL)
495482

496-
static inline void cfs_rq_tg_path(struct cfs_rq *cfs_rq, char *path, int len)
497-
{
498-
if (path)
499-
strlcpy(path, "(null)", len);
500-
}
501-
502483
static inline bool list_add_leaf_cfs_rq(struct cfs_rq *cfs_rq)
503484
{
504485
return true;

0 commit comments

Comments
 (0)