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.26-rc8~11^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8a8cde163ea724baf74e7752a31a69d3121a240e;p=linux-2.6-omap-h63xx.git 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. Reported-by: "Daniel K." Signed-off-by: Peter Zijlstra Tested-by: Daniel K. Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 1dad5bbb59b..0f3c19197fa 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c @@ -250,7 +250,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);