Skip to content

Commit

Permalink
sched/psi: Remove redundant cgroup_psi() when !CONFIG_CGROUPS
Browse files Browse the repository at this point in the history
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 <jiahao.os@bytedance.com>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Hao Jia authored and htejun committed Aug 15, 2022
1 parent 76b079e commit d7ae581
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/linux/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -734,11 +734,6 @@ static inline struct cgroup *cgroup_parent(struct cgroup *cgrp)
return NULL;
}

static inline struct psi_group *cgroup_psi(struct cgroup *cgrp)
{
return NULL;
}

static inline bool cgroup_psi_enabled(void)
{
return false;
Expand Down

0 comments on commit d7ae581

Please sign in to comment.