aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
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) {