aboutsummaryrefslogtreecommitdiff
path: root/kernel/sched_autogroup.c
diff options
context:
space:
mode:
authorYong Zhang <yong.zhang0@gmail.com>2011-01-07 15:17:36 +0800
committerIngo Molnar <mingo@elte.hu>2011-01-07 15:54:34 +0100
commit07e06b011db2b3300f6c975ebf293fc4c8c59942 (patch)
treef6f0fdd7c1707aa9badf16d1ceb4de1e16adb9e9 /kernel/sched_autogroup.c
parentcb600d2f83c854ec3d6660063e4466431999489b (diff)
sched: Consolidate the name of root_task_group and init_task_group
root_task_group is the leftover of USER_SCHED, now it's always same to init_task_group. But as Mike suggested, root_task_group is maybe the suitable name to keep for a tree. So in this patch: init_task_group --> root_task_group init_task_group_load --> root_task_group_load INIT_TASK_GROUP_LOAD --> ROOT_TASK_GROUP_LOAD Suggested-by: Mike Galbraith <efault@gmx.de> Signed-off-by: Yong Zhang <yong.zhang0@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <20110107071736.GA32635@windriver.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_autogroup.c')
-rw-r--r--kernel/sched_autogroup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched_autogroup.c b/kernel/sched_autogroup.c
index c80fedcd476..e011e53433a 100644
--- a/kernel/sched_autogroup.c
+++ b/kernel/sched_autogroup.c
@@ -11,8 +11,8 @@ static atomic_t autogroup_seq_nr;
static void autogroup_init(struct task_struct *init_task)
{
- autogroup_default.tg = &init_task_group;
- init_task_group.autogroup = &autogroup_default;
+ autogroup_default.tg = &root_task_group;
+ root_task_group.autogroup = &autogroup_default;
kref_init(&autogroup_default.kref);
init_rwsem(&autogroup_default.lock);
init_task->signal->autogroup = &autogroup_default;
@@ -63,7 +63,7 @@ static inline struct autogroup *autogroup_create(void)
if (!ag)
goto out_fail;
- tg = sched_create_group(&init_task_group);
+ tg = sched_create_group(&root_task_group);
if (IS_ERR(tg))
goto out_free;