diff options
| author | Bruno Martins <bgcngm@gmail.com> | 2024-01-10 15:20:06 +0000 |
|---|---|---|
| committer | Bruno Martins <bgcngm@gmail.com> | 2024-01-10 15:39:58 +0000 |
| commit | 5e0c41643bbb4d0290ac383f45fdaf684a907f74 (patch) | |
| tree | a71274535f6bf73701bfc25aaee46ab6c8b02008 /kernel | |
| parent | dc34e8e1cf39f64b5dc5a7dee86c45ddc6d31635 (diff) | |
Revert "sched: tune: Unconditionally allow attach"
This reverts commit f39d0b496aa4e13cbcf23bdf3c22d356bd783b9e.
It is no longer applicable, allow_attach cgroup was ditched upstream.
Change-Id: Ib370171e93a5cb0c9993065b98de2073c905229c
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched/tune.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/kernel/sched/tune.c b/kernel/sched/tune.c index 07eb4ad5153b..728553403c2b 100644 --- a/kernel/sched/tune.c +++ b/kernel/sched/tune.c @@ -568,13 +568,6 @@ void schedtune_enqueue_task(struct task_struct *p, int cpu) raw_spin_unlock_irqrestore(&bg->lock, irq_flags); } -int schedtune_allow_attach(struct cgroup_subsys_state *css, - struct cgroup_taskset *tset) -{ - /* We always allows tasks to be moved between existing CGroups */ - return 0; -} - int schedtune_can_attach(struct cgroup_taskset *tset) { struct task_struct *task; @@ -591,6 +584,7 @@ int schedtune_can_attach(struct cgroup_taskset *tset) if (!unlikely(schedtune_initialized)) return 0; + cgroup_taskset_for_each(task, css, tset) { /* @@ -967,7 +961,6 @@ schedtune_css_free(struct cgroup_subsys_state *css) struct cgroup_subsys schedtune_cgrp_subsys = { .css_alloc = schedtune_css_alloc, .css_free = schedtune_css_free, - .allow_attach = schedtune_allow_attach, .can_attach = schedtune_can_attach, .cancel_attach = schedtune_cancel_attach, .legacy_cftypes = files, |
