diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 996bc15196a5..827c1b416da6 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6075,6 +6075,7 @@ static void migrate_dead_tasks(unsigned int dead_cpu) | |||
6075 | next = pick_next_task(rq, rq->curr); | 6075 | next = pick_next_task(rq, rq->curr); |
6076 | if (!next) | 6076 | if (!next) |
6077 | break; | 6077 | break; |
6078 | next->sched_class->put_prev_task(rq, next); | ||
6078 | migrate_dead(dead_cpu, next); | 6079 | migrate_dead(dead_cpu, next); |
6079 | 6080 | ||
6080 | } | 6081 | } |
@@ -8755,6 +8756,9 @@ int sched_group_set_rt_period(struct task_group *tg, long rt_period_us) | |||
8755 | rt_period = (u64)rt_period_us * NSEC_PER_USEC; | 8756 | rt_period = (u64)rt_period_us * NSEC_PER_USEC; |
8756 | rt_runtime = tg->rt_bandwidth.rt_runtime; | 8757 | rt_runtime = tg->rt_bandwidth.rt_runtime; |
8757 | 8758 | ||
8759 | if (rt_period == 0) | ||
8760 | return -EINVAL; | ||
8761 | |||
8758 | return tg_set_bandwidth(tg, rt_period, rt_runtime); | 8762 | return tg_set_bandwidth(tg, rt_period, rt_runtime); |
8759 | } | 8763 | } |
8760 | 8764 | ||