From: Peter Zijlstra Date: Thu, 19 Jun 2008 12:22:28 +0000 (+0200) Subject: sched: rt: dont stop the period timer when there are tasks wanting to run X-Git-Tag: v2.6.27-rc1~1105^2~44 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c3df25511c2c51f2dd36cc52a8d22363d731793;p=linux-2.6 sched: rt: dont stop the period timer when there are tasks wanting to run So if the group ever gets throttled, it will never wake up again. Signed-off-by: Peter Zijlstra Cc: "Daniel K." Cc: Peter Zijlstra Reported-by: "Daniel K." --- diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 61d5211228..bd90c8bb07 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c @@ -412,7 +412,8 @@ static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun) if (rt_rq->rt_time || rt_rq->rt_nr_running) idle = 0; spin_unlock(&rt_rq->rt_runtime_lock); - } + } else if (rt_rq->rt_nr_running) + idle = 0; if (enqueue) sched_rt_rq_enqueue(rt_rq);