]> git.hungrycats.org Git - linux/commitdiff
printk: rename printk_sched to printk_deferred
authorJohn Stultz <john.stultz@linaro.org>
Wed, 4 Jun 2014 23:11:40 +0000 (16:11 -0700)
committerJiri Slaby <jslaby@suse.cz>
Tue, 19 Aug 2014 12:23:37 +0000 (14:23 +0200)
commit aac74dc495456412c4130a1167ce4beb6c1f0b38 upstream.

After learning we'll need some sort of deferred printk functionality in
the timekeeping core, Peter suggested we rename the printk_sched function
so it can be reused by needed subsystems.

This only changes the function name. No logic changes.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Cc: 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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
include/linux/printk.h
kernel/printk/printk.c
kernel/sched/core.c
kernel/sched/rt.c

index 694925837a1645bb7297cc9254efee7173a32197..1864d94d1a894ed5a57a5e0e6d0fc77186549d0e 100644 (file)
@@ -124,9 +124,9 @@ asmlinkage __printf(1, 2) __cold
 int printk(const char *fmt, ...);
 
 /*
- * Special printk facility for scheduler use only, _DO_NOT_USE_ !
+ * Special printk facility for scheduler/timekeeping use only, _DO_NOT_USE_ !
  */
-__printf(1, 2) __cold int printk_sched(const char *fmt, ...);
+__printf(1, 2) __cold int printk_deferred(const char *fmt, ...);
 
 /*
  * Please don't use printk_ratelimit(), because it shares ratelimiting state
@@ -161,7 +161,7 @@ int printk(const char *s, ...)
        return 0;
 }
 static inline __printf(1, 2) __cold
-int printk_sched(const char *s, ...)
+int printk_deferred(const char *s, ...)
 {
        return 0;
 }
index c59896c65ac3922b11f6984fd125b8ff0768b912..0f91490368852fc2dff376f2d2243a1ead053dd6 100644 (file)
@@ -2470,7 +2470,7 @@ void wake_up_klogd(void)
        preempt_enable();
 }
 
-int printk_sched(const char *fmt, ...)
+int printk_deferred(const char *fmt, ...)
 {
        unsigned long flags;
        va_list args;
index 07039cba59d99a5869b829c1f815f814667fdfb9..f09e22163be33f1448e4fc0d0e5506819ef687d2 100644 (file)
@@ -1224,7 +1224,7 @@ out:
                 * leave kernel.
                 */
                if (p->mm && printk_ratelimit()) {
-                       printk_sched("process %d (%s) no longer affine to cpu%d\n",
+                       printk_deferred("process %d (%s) no longer affine to cpu%d\n",
                                        task_pid_nr(p), p->comm, cpu);
                }
        }
index ff04e1a06412f25db4a379a6593cc0b6d36c0f76..e849d4070c7f8d86142758530d85281a1a5f4587 100644 (file)
@@ -829,7 +829,7 @@ static int sched_rt_runtime_exceeded(struct rt_rq *rt_rq)
 
                        if (!once) {
                                once = true;
-                               printk_sched("sched: RT throttling activated\n");
+                               printk_deferred("sched: RT throttling activated\n");
                        }
                } else {
                        /*