| From 4b40e94233914642735b0a366cee9d0634224430 Mon Sep 17 00:00:00 2001 |
| From: Thomas Gleixner <tglx@linutronix.de> |
| Date: Sun, 2 May 2010 20:55:06 +0200 |
| Subject: [PATCH] sched: Warn on rt throttling |
| |
| commit 4b40e94233914642735b0a366cee9d0634224430 in tip. |
| |
| 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. |
| |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| |
| diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c |
| index 6a0029a..0e4b15d 100644 |
| --- a/kernel/sched_rt.c |
| +++ b/kernel/sched_rt.c |
| @@ -580,6 +580,7 @@ static int sched_rt_runtime_exceeded(struct rt_rq *rt_rq) |
| |
| 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; |
| -- |
| 1.7.1.1 |
| |