aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r--kernel/sched/core.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 3595403921bd..2cad9ba91036 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -8163,21 +8163,6 @@ static void cpu_cgroup_attach(struct cgroup_subsys_state *css,
8163 sched_move_task(task); 8163 sched_move_task(task);
8164} 8164}
8165 8165
8166static void cpu_cgroup_exit(struct cgroup_subsys_state *css,
8167 struct cgroup_subsys_state *old_css,
8168 struct task_struct *task)
8169{
8170 /*
8171 * cgroup_exit() is called in the copy_process() failure path.
8172 * Ignore this case since the task hasn't ran yet, this avoids
8173 * trying to poke a half freed task state from generic code.
8174 */
8175 if (!(task->flags & PF_EXITING))
8176 return;
8177
8178 sched_move_task(task);
8179}
8180
8181#ifdef CONFIG_FAIR_GROUP_SCHED 8166#ifdef CONFIG_FAIR_GROUP_SCHED
8182static int cpu_shares_write_u64(struct cgroup_subsys_state *css, 8167static int cpu_shares_write_u64(struct cgroup_subsys_state *css,
8183 struct cftype *cftype, u64 shareval) 8168 struct cftype *cftype, u64 shareval)
@@ -8509,7 +8494,6 @@ struct cgroup_subsys cpu_cgrp_subsys = {
8509 .fork = cpu_cgroup_fork, 8494 .fork = cpu_cgroup_fork,
8510 .can_attach = cpu_cgroup_can_attach, 8495 .can_attach = cpu_cgroup_can_attach,
8511 .attach = cpu_cgroup_attach, 8496 .attach = cpu_cgroup_attach,
8512 .exit = cpu_cgroup_exit,
8513 .legacy_cftypes = cpu_files, 8497 .legacy_cftypes = cpu_files,
8514 .early_init = 1, 8498 .early_init = 1,
8515}; 8499};