aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 1ffa76813a01..42899dce837d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5938,6 +5938,7 @@ static void migrate_dead_tasks(unsigned int dead_cpu)
5938 next = pick_next_task(rq, rq->curr); 5938 next = pick_next_task(rq, rq->curr);
5939 if (!next) 5939 if (!next)
5940 break; 5940 break;
5941 next->sched_class->put_prev_task(rq, next);
5941 migrate_dead(dead_cpu, next); 5942 migrate_dead(dead_cpu, next);
5942 5943
5943 } 5944 }
@@ -8552,6 +8553,9 @@ int sched_group_set_rt_period(struct task_group *tg, long rt_period_us)
8552 rt_period = (u64)rt_period_us * NSEC_PER_USEC; 8553 rt_period = (u64)rt_period_us * NSEC_PER_USEC;
8553 rt_runtime = tg->rt_bandwidth.rt_runtime; 8554 rt_runtime = tg->rt_bandwidth.rt_runtime;
8554 8555
8556 if (rt_period == 0)
8557 return -EINVAL;
8558
8555 return tg_set_bandwidth(tg, rt_period, rt_runtime); 8559 return tg_set_bandwidth(tg, rt_period, rt_runtime);
8556} 8560}
8557 8561