Skip to contentSkip to conversation

sched: Warn on rt throttling

PATCH Thomas Gleixner 1 participant 1 message Oct 5, 2011

lore
Share & tools
lore
#0 lore raw

The default rt-throttling is a source of never ending questions. Warn once when we go into throttling so folks have that info in dmesg.

---
 kernel/sched_rt.c |    1 +
 1 file changed, 1 insertion(+)
kernel/sched_rt.c +1 -0
Index: linux-2.6/kernel/sched_rt.c
===================================================================
@@ -631,6 +631,7 @@ static int sched_rt_runtime_exceeded(str
 
 	if (rt_rq->rt_time > runtime) {
 		rt_rq->rt_throttled = 1;
+		printk_once(KERN_WARNING "sched: RT throttling activated\n");
 		if (rt_rq_throttled(rt_rq)) {
 			sched_rt_rq_dequeue(rt_rq);
 			return 1;