From 50fcbe0c7661ef394763df00a7c78cd47b2ea15a Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Thu, 19 Jun 2008 09:06:59 +0200 Subject: [PATCH] --- yaml --- r: 98299 b: refs/heads/master c: 15a8641eadb492ef7c5489faa25256967bdfd303 h: refs/heads/master i: 98297: db5ded56773606e1af9b947df980086751fa60aa 98295: 8326cb175d41d2b99e12f2509220133719a20676 v: v3 --- [refs] | 2 +- trunk/kernel/sched_rt.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 91e64a049086..907c3f72a151 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ad2a3f13b7258a5daaaeb8cff9f835aac468b71d +refs/heads/master: 15a8641eadb492ef7c5489faa25256967bdfd303 diff --git a/trunk/kernel/sched_rt.c b/trunk/kernel/sched_rt.c index 837241568d76..1dad5bbb59b6 100644 --- a/trunk/kernel/sched_rt.c +++ b/trunk/kernel/sched_rt.c @@ -549,8 +549,10 @@ static void requeue_rt_entity(struct rt_rq *rt_rq, struct sched_rt_entity *rt_se) { struct rt_prio_array *array = &rt_rq->active; + struct list_head *queue = array->queue + rt_se_prio(rt_se); - list_move_tail(&rt_se->run_list, array->queue + rt_se_prio(rt_se)); + if (on_rt_rq(rt_se)) + list_move_tail(&rt_se->run_list, queue); } static void requeue_task_rt(struct rq *rq, struct task_struct *p)