aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c2
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++;