diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-07 02:01:26 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-07 02:01:26 -0400 |
commit | 032f82786f9be4635acaa5f77feca175a4ac5fe1 (patch) | |
tree | 11ce43c1086d3dec43c92b0a2cc740240b338fb7 /kernel/sched.c | |
parent | 46ac22bab42cc868b9c1d0e915ddbc8e8065a44d (diff) | |
parent | b7279469d66b55119784b8b9529c99c1955fe747 (diff) |
Merge commit 'v2.6.26-rc9' into sched/devel
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 | ||