aboutsummaryrefslogtreecommitdiff
path: root/kernel/cgroup
diff options
context:
space:
mode:
authorspkal01 <kalligeross@gmail.com>2021-05-17 02:37:28 +0530
committerspkal01 <kalligeross@gmail.com>2021-05-17 02:37:28 +0530
commit93b265ae2eba8d93d0ffa406958547232f3114c8 (patch)
treec2f093aa144f732b5cf7bd8a0b45bf35eda42e1c /kernel/cgroup
parent0a82617b8fce8994076b518064e7d420af290ea8 (diff)
parent016f4ba70bffb6d02725e778c3989fa542e6d12a (diff)
Merge branch 'android11' of https://github.com/vantoman/kernel_xiaomi_sm6150 into HEADHEADr11.1
Diffstat (limited to 'kernel/cgroup')
-rw-r--r--kernel/cgroup/cpuset.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index ec0563b4484d..b04cd4c051eb 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -1879,45 +1879,6 @@ int cpu_uclamp_boost_write_u64_wrapper(struct cgroup_subsys_state *css,
struct cftype *cftype, u64 boost);
u64 cpu_uclamp_boost_read_u64_wrapper(struct cgroup_subsys_state *css,
struct cftype *cft);
-
-#if !defined(CONFIG_SCHED_TUNE)
-static u64 st_boost_read(struct cgroup_subsys_state *css,
- struct cftype *cft)
-{
- if (!strlen(css->cgroup->kn->name))
- return -EINVAL;
-
- return cpu_uclamp_boost_read_u64_wrapper(css, cft);
-}
-
-static int st_boost_write(struct cgroup_subsys_state *css,
- struct cftype *cft, u64 boost)
-{
- if (!strlen(css->cgroup->kn->name))
- return -EINVAL;
-
- return cpu_uclamp_boost_write_u64_wrapper(css, cft, boost);
-}
-
-static u64 st_prefer_idle_read(struct cgroup_subsys_state *css,
- struct cftype *cft)
-{
- if (!strlen(css->cgroup->kn->name))
- return -EINVAL;
-
- return cpu_uclamp_ls_read_u64_wrapper(css, cft);
-}
-
-static int st_prefer_idle_write(struct cgroup_subsys_state *css,
- struct cftype *cft, u64 prefer_idle)
-{
- if (!strlen(css->cgroup->kn->name))
- return -EINVAL;
-
- return cpu_uclamp_ls_write_u64_wrapper(css, cft, prefer_idle);
-}
-#endif
-
#endif
/*
@@ -2047,20 +2008,6 @@ static struct cftype files[] = {
.read_u64 = cpu_uclamp_boost_read_u64_wrapper,
.write_u64 = cpu_uclamp_boost_write_u64_wrapper,
},
-
-#if !defined(CONFIG_SCHED_TUNE)
- {
- .name = "schedtune.boost",
- .read_u64 = st_boost_read,
- .write_u64 = st_boost_write,
- },
- {
- .name = "schedtune.prefer_idle",
- .read_u64 = st_prefer_idle_read,
- .write_u64 = st_prefer_idle_write,
- },
-#endif
-
#endif
{ } /* terminate */
};