summaryrefslogtreecommitdiffstats
path: root/sched-Warn-on-rt-throttling.patch
blob: e00736054b7af3b100ceea5f48e2fa8e9a206c53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 53d8b3e798d7bb049a93a4ee97a2298241bda77f 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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 kernel/sched_rt.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index a1791d7..4d7521f 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -586,6 +586,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.0.4