aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
authorHao Jia <jiahao.os@bytedance.com>2022-08-06 20:05:10 +0800
committerTejun Heo <tj@kernel.org>2022-08-15 12:35:31 -1000
commitd7ae5818c3fa3007dee13f9d99832e7f26b8bc44 (patch)
tree1fb4339f0688e350abd546e382e757233e590e15 /include/linux/cgroup.h
parentsched/psi: Remove unused parameter nbytes of psi_trigger_create() (diff)
downloadlinux-dev-d7ae5818c3fa3007dee13f9d99832e7f26b8bc44.tar.xz
linux-dev-d7ae5818c3fa3007dee13f9d99832e7f26b8bc44.zip
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 <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>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r--include/linux/cgroup.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index ed53bfe7c46c..ac5d0515680e 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -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;