]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/sched_rt.c
sched: fix rt-bandwidth hotplug race
[linux-2.6-omap-h63xx.git] / kernel / sched_rt.c
index 6163e4cf885b90075fd2734427fac4f3f24eae1f..998ba54b4543d876a6fa82f4a41debb981923319 100644 (file)
@@ -298,7 +298,7 @@ static void __disable_runtime(struct rq *rq)
                        struct rt_rq *iter = sched_rt_period_rt_rq(rt_b, i);
                        s64 diff;
 
-                       if (iter == rt_rq)
+                       if (iter == rt_rq || iter->rt_runtime == RUNTIME_INF)
                                continue;
 
                        spin_lock(&iter->rt_runtime_lock);