aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlauber Costa <glommer@parallels.com>2011-11-01 17:19:07 -0400
committerIngo Molnar <mingo@elte.hu>2011-11-16 02:48:22 -0500
commitf4d6f6c2649c2c47261db4dcc3110d6f22202ea2 (patch)
tree0ca6a621249bd83f3bae3ac266c4b2bf55f17fbd
parent56f570e512eeb5b412cb3a62234adc446a8eb32b (diff)
sched, trivial: Initialize root cgroup's sibling list
Even though there are no siblings, the list should be initialized to not contain bogus values. Signed-off-by: Glauber Costa <glommer@parallels.com> Acked-by: Paul Menage <paul@paulmenage.org> Acked-by: Paul Turner <pjt@google.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1320182360-20043-2-git-send-email-glommer@parallels.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/sched.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index d9d79a4088c8..0df69866a04e 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8275,6 +8275,7 @@ void __init sched_init(void)
8275#ifdef CONFIG_CGROUP_SCHED 8275#ifdef CONFIG_CGROUP_SCHED
8276 list_add(&root_task_group.list, &task_groups); 8276 list_add(&root_task_group.list, &task_groups);
8277 INIT_LIST_HEAD(&root_task_group.children); 8277 INIT_LIST_HEAD(&root_task_group.children);
8278 INIT_LIST_HEAD(&root_task_group.siblings);
8278 autogroup_init(&init_task); 8279 autogroup_init(&init_task);
8279#endif /* CONFIG_CGROUP_SCHED */ 8280#endif /* CONFIG_CGROUP_SCHED */
8280 8281