From 681083c9da022ac28bb52c03859907273cc996b3 Mon Sep 17 00:00:00 2001 From: Dario Faggioli Date: Fri, 3 Oct 2008 17:40:46 +0200 Subject: [PATCH] --- yaml --- r: 110734 b: refs/heads/master c: f6121f4f8708195e88cbdf8dd8d171b226b3f858 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/sched_rt.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index ca6ca4b0c2c2..3a0530b9cd67 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 64b9e0294d24a4204232e13e01630b0690e48d61 +refs/heads/master: f6121f4f8708195e88cbdf8dd8d171b226b3f858 diff --git a/trunk/kernel/sched_rt.c b/trunk/kernel/sched_rt.c index d570a8cc4fcd..cdf5740ab03e 100644 --- a/trunk/kernel/sched_rt.c +++ b/trunk/kernel/sched_rt.c @@ -102,12 +102,12 @@ static void dequeue_rt_entity(struct sched_rt_entity *rt_se); static void sched_rt_rq_enqueue(struct rt_rq *rt_rq) { + struct task_struct *curr = rq_of_rt_rq(rt_rq)->curr; struct sched_rt_entity *rt_se = rt_rq->rt_se; - if (rt_se && !on_rt_rq(rt_se) && rt_rq->rt_nr_running) { - struct task_struct *curr = rq_of_rt_rq(rt_rq)->curr; - - enqueue_rt_entity(rt_se); + if (rt_rq->rt_nr_running) { + if (rt_se && !on_rt_rq(rt_se)) + enqueue_rt_entity(rt_se); if (rt_rq->highest_prio < curr->prio) resched_task(curr); }