diff options
author | John Stultz <john.stultz@linaro.org> | 2014-06-04 19:11:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:17 -0400 |
commit | c224815dac9c739b79050d3cc67443ff500bc478 (patch) | |
tree | 07cca4568dd1ae0c89241c1b335a1941ec2bca85 /kernel/sched/rt.c | |
parent | aac74dc495456412c4130a1167ce4beb6c1f0b38 (diff) |
printk: Add printk_deferred_once
Two of the three prink_deferred uses are really printk_once style
uses, so add a printk_deferred_once macro to simplify those call
sites.
Signed-off-by: John Stultz <john.stultz@linaro.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Jiri Bohac <jbohac@suse.cz>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sched/rt.c')
-rw-r--r-- | kernel/sched/rt.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 5d7667b37c21..b3512f1afce9 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c | |||
@@ -890,14 +890,8 @@ static int sched_rt_runtime_exceeded(struct rt_rq *rt_rq) | |||
890 | * but accrue some time due to boosting. | 890 | * but accrue some time due to boosting. |
891 | */ | 891 | */ |
892 | if (likely(rt_b->rt_runtime)) { | 892 | if (likely(rt_b->rt_runtime)) { |
893 | static bool once = false; | ||
894 | |||
895 | rt_rq->rt_throttled = 1; | 893 | rt_rq->rt_throttled = 1; |
896 | 894 | printk_deferred_once("sched: RT throttling activated\n"); | |
897 | if (!once) { | ||
898 | once = true; | ||
899 | printk_deferred("sched: RT throttling activated\n"); | ||
900 | } | ||
901 | } else { | 895 | } else { |
902 | /* | 896 | /* |
903 | * In case we did anyway, make it go away, | 897 | * In case we did anyway, make it go away, |