aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_autogroup.c
diff options
context:
space:
mode:
authorYong Zhang <yong.zhang0@gmail.com>2011-01-07 02:17:36 -0500
committerIngo Molnar <mingo@elte.hu>2011-01-07 09:54:34 -0500
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 c80fedcd476b..e011e53433a6 100644
--- a/kernel/sched_autogroup.c
+++ b/kernel/sched_autogroup.c
@@ -11,8 +11,8 @@ static atomic_t autogroup_seq_nr;
11 11
12static void autogroup_init(struct task_struct *init_task) 12static void autogroup_init(struct task_struct *init_task)
13{ 13{
14 autogroup_default.tg = &init_task_group; 14 autogroup_default.tg = &root_task_group;
15 init_task_group.autogroup = &autogroup_default; 15 root_task_group.autogroup = &autogroup_default;
16 kref_init(&autogroup_default.kref); 16 kref_init(&autogroup_default.kref);
17 init_rwsem(&autogroup_default.lock); 17 init_rwsem(&autogroup_default.lock);
18 init_task->signal->autogroup = &autogroup_default; 18 init_task->signal->autogroup = &autogroup_default;
@@ -63,7 +63,7 @@ static inline struct autogroup *autogroup_create(void)
63 if (!ag) 63 if (!ag)
64 goto out_fail; 64 goto out_fail;
65 65
66 tg = sched_create_group(&init_task_group); 66 tg = sched_create_group(&root_task_group);
67 67
68 if (IS_ERR(tg)) 68 if (IS_ERR(tg))
69 goto out_free; 69 goto out_free;