Skip to content

Commit d7ae581

Browse files
Hao Jiahtejun
authored andcommitted
sched/psi: Remove redundant cgroup_psi() when !CONFIG_CGROUPS
cgroup_psi() is only called under CONFIG_CGROUPS. We don't need cgroup_psi() when !CONFIG_CGROUPS, so we can remove it in this case. Signed-off-by: Hao Jia <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Acked-by: Johannes Weiner <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 76b079e commit d7ae581

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

include/linux/cgroup.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,6 @@ static inline struct cgroup *cgroup_parent(struct cgroup *cgrp)
734734
return NULL;
735735
}
736736

737-
static inline struct psi_group *cgroup_psi(struct cgroup *cgrp)
738-
{
739-
return NULL;
740-
}
741-
742737
static inline bool cgroup_psi_enabled(void)
743738
{
744739
return false;

0 commit comments

Comments
 (0)