diff options
author | Mike Galbraith <efault@gmx.de> | 2006-04-11 01:52:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-11 09:18:30 -0400 |
commit | 8a5bc075b8d8cf7a87b3f08fad2fba0f5d13295e (patch) | |
tree | 977c14c704c44a905014ff9b3c0f613983793109 /kernel/sched.c | |
parent | 5ce74abe788a26698876e66b9c9ce7e7acc25413 (diff) |
[PATCH] sched: don't awaken RT tasks on expired array
RT tasks are being awakened on the expired array when expired_starving() is
true, whereas they really should be excluded. Fix.
Signed-off-by: Mike Galbraith <efault@gmx.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Con Kolivas <kernel@kolivas.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 2e8a146dd066..365f0b90b4de 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -713,7 +713,7 @@ static void __activate_task(task_t *p, runqueue_t *rq) | |||
713 | { | 713 | { |
714 | prio_array_t *target = rq->active; | 714 | prio_array_t *target = rq->active; |
715 | 715 | ||
716 | if (unlikely(batch_task(p) || expired_starving(rq))) | 716 | if (unlikely(batch_task(p) || (expired_starving(rq) && !rt_task(p)))) |
717 | target = rq->expired; | 717 | target = rq->expired; |
718 | enqueue_task(p, target); | 718 | enqueue_task(p, target); |
719 | rq->nr_running++; | 719 | rq->nr_running++; |