aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-06-19 03:09:15 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-19 03:09:15 -0400
commit1cdad71537b42d0f0bf247772942ce678e4e8898 (patch)
tree58caef683e4739907e0ae147bead71a5b19e2207 /kernel/sched.c
parent20b6331bfed1f07ba1e5006889a5d64adc53615e (diff)
parent15a8641eadb492ef7c5489faa25256967bdfd303 (diff)
Merge branch 'sched' into sched-devel
Conflicts: kernel/sched_rt.c Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index cc1d558406f8..5b307da827ef 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7697,7 +7697,6 @@ static void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq,
7697 else 7697 else
7698 rt_se->rt_rq = parent->my_q; 7698 rt_se->rt_rq = parent->my_q;
7699 7699
7700 rt_se->rt_rq = &rq->rt;
7701 rt_se->my_q = rt_rq; 7700 rt_se->my_q = rt_rq;
7702 rt_se->parent = parent; 7701 rt_se->parent = parent;
7703 INIT_LIST_HEAD(&rt_se->run_list); 7702 INIT_LIST_HEAD(&rt_se->run_list);
@@ -8420,7 +8419,7 @@ static unsigned long to_ratio(u64 period, u64 runtime)
8420#ifdef CONFIG_CGROUP_SCHED 8419#ifdef CONFIG_CGROUP_SCHED
8421static int __rt_schedulable(struct task_group *tg, u64 period, u64 runtime) 8420static int __rt_schedulable(struct task_group *tg, u64 period, u64 runtime)
8422{ 8421{
8423 struct task_group *tgi, *parent = tg->parent; 8422 struct task_group *tgi, *parent = tg ? tg->parent : NULL;
8424 unsigned long total = 0; 8423 unsigned long total = 0;
8425 8424
8426 if (!parent) { 8425 if (!parent) {