]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.14.16/printk-rename-printk_sched-to-printk_deferred.patch
drop queue-4.14/mips-make-sure-dt-memory-regions-are-valid.patch
[thirdparty/kernel/stable-queue.git] / releases / 3.14.16 / printk-rename-printk_sched-to-printk_deferred.patch
CommitLineData
d4cb193b
GKH
1From aac74dc495456412c4130a1167ce4beb6c1f0b38 Mon Sep 17 00:00:00 2001
2From: John Stultz <john.stultz@linaro.org>
3Date: Wed, 4 Jun 2014 16:11:40 -0700
4Subject: printk: rename printk_sched to printk_deferred
5
6From: John Stultz <john.stultz@linaro.org>
7
8commit aac74dc495456412c4130a1167ce4beb6c1f0b38 upstream.
9
10After learning we'll need some sort of deferred printk functionality in
11the timekeeping core, Peter suggested we rename the printk_sched function
12so it can be reused by needed subsystems.
13
14This only changes the function name. No logic changes.
15
16Signed-off-by: John Stultz <john.stultz@linaro.org>
17Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
18Cc: Jan Kara <jack@suse.cz>
19Cc: Peter Zijlstra <peterz@infradead.org>
20Cc: Jiri Bohac <jbohac@suse.cz>
21Cc: Thomas Gleixner <tglx@linutronix.de>
22Cc: Ingo Molnar <mingo@redhat.com>
23Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
24Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
25Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26
27---
28 include/linux/printk.h | 6 +++---
29 kernel/printk/printk.c | 2 +-
30 kernel/sched/core.c | 2 +-
31 kernel/sched/deadline.c | 2 +-
32 kernel/sched/rt.c | 2 +-
33 5 files changed, 7 insertions(+), 7 deletions(-)
34
35--- a/include/linux/printk.h
36+++ b/include/linux/printk.h
37@@ -132,9 +132,9 @@ asmlinkage __printf(1, 2) __cold
38 int printk(const char *fmt, ...);
39
40 /*
41- * Special printk facility for scheduler use only, _DO_NOT_USE_ !
42+ * Special printk facility for scheduler/timekeeping use only, _DO_NOT_USE_ !
43 */
44-__printf(1, 2) __cold int printk_sched(const char *fmt, ...);
45+__printf(1, 2) __cold int printk_deferred(const char *fmt, ...);
46
47 /*
48 * Please don't use printk_ratelimit(), because it shares ratelimiting state
49@@ -169,7 +169,7 @@ int printk(const char *s, ...)
50 return 0;
51 }
52 static inline __printf(1, 2) __cold
53-int printk_sched(const char *s, ...)
54+int printk_deferred(const char *s, ...)
55 {
56 return 0;
57 }
58--- a/kernel/printk/printk.c
59+++ b/kernel/printk/printk.c
60@@ -2468,7 +2468,7 @@ void wake_up_klogd(void)
61 preempt_enable();
62 }
63
64-int printk_sched(const char *fmt, ...)
65+int printk_deferred(const char *fmt, ...)
66 {
67 unsigned long flags;
68 va_list args;
69--- a/kernel/sched/core.c
70+++ b/kernel/sched/core.c
71@@ -1322,7 +1322,7 @@ out:
72 * leave kernel.
73 */
74 if (p->mm && printk_ratelimit()) {
75- printk_sched("process %d (%s) no longer affine to cpu%d\n",
76+ printk_deferred("process %d (%s) no longer affine to cpu%d\n",
77 task_pid_nr(p), p->comm, cpu);
78 }
79 }
80--- a/kernel/sched/deadline.c
81+++ b/kernel/sched/deadline.c
82@@ -329,7 +329,7 @@ static void replenish_dl_entity(struct s
83
84 if (!lag_once) {
85 lag_once = true;
86- printk_sched("sched: DL replenish lagged to much\n");
87+ printk_deferred("sched: DL replenish lagged to much\n");
88 }
89 dl_se->deadline = rq_clock(rq) + pi_se->dl_deadline;
90 dl_se->runtime = pi_se->dl_runtime;
91--- a/kernel/sched/rt.c
92+++ b/kernel/sched/rt.c
93@@ -837,7 +837,7 @@ static int sched_rt_runtime_exceeded(str
94
95 if (!once) {
96 once = true;
97- printk_sched("sched: RT throttling activated\n");
98+ printk_deferred("sched: RT throttling activated\n");
99 }
100 } else {
101 /*