summaryrefslogtreecommitdiff
path: root/kernel/sched
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-03-31 23:51:39 +0100
committerMark Brown <broonie@linaro.org>2014-03-31 23:51:39 +0100
commit0f15ea2dcd21b295fa34c77dffd1164117824d2f (patch)
treefee321f17352d2e630113fe9d283a5178311856d /kernel/sched
parentc0a93defcd503973c025d0cf2b49ea0cb07efb4c (diff)
parentf3124ba519b42426525585f50dbde3235b1fb89a (diff)
Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-android
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/auto_group.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched/auto_group.c b/kernel/sched/auto_group.c
index 64de5f8b0c9e..4a073539c58e 100644
--- a/kernel/sched/auto_group.c
+++ b/kernel/sched/auto_group.c
@@ -77,8 +77,6 @@ static inline struct autogroup *autogroup_create(void)
if (IS_ERR(tg))
goto out_free;
- sched_online_group(tg, &root_task_group);
-
kref_init(&ag->kref);
init_rwsem(&ag->lock);
ag->id = atomic_inc_return(&autogroup_seq_nr);
@@ -98,6 +96,7 @@ static inline struct autogroup *autogroup_create(void)
#endif
tg->autogroup = ag;
+ sched_online_group(tg, &root_task_group);
return ag;
out_free: