]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
printk: rename printk_sched to printk_deferred
authorJohn Stultz <john.stultz@linaro.org>
Wed, 14 May 2014 00:02:28 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:28 +0000 (10:02 +1000)
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>
include/linux/printk.h
kernel/printk/printk.c
kernel/sched/core.c
kernel/sched/deadline.c
kernel/sched/rt.c

index 8752f7595b2759712f760c3924a2110fef5ca7d5..7847301e2837c9f9fae18d39466993e7d8f0fa49 100644 (file)
@@ -128,9 +128,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
@@ -165,7 +165,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 5aba603cf0d840c4c2fb963487ff998e6bf1a249..f01d01f7b0a9ae8ad6c232e5cf5e36b23c0b0c6a 100644 (file)
@@ -2584,7 +2584,7 @@ void wake_up_klogd(void)
        preempt_enable();
 }
 
-int printk_sched(const char *fmt, ...)
+int printk_deferred(const char *fmt, ...)
 {
        va_list args;
        int r;
index d9d8ece46a15885410a1bb138f4c6c7155573803..cea055a9eb50fed1c1c1ec49172e66d5a54f2e9b 100644 (file)
@@ -1320,7 +1320,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 b08095786cb8fff0c96773eb5f6a582da503bcb8..657ed6892d543f147c7d038dfd1085411c77a1e7 100644 (file)
@@ -352,7 +352,7 @@ static void replenish_dl_entity(struct sched_dl_entity *dl_se,
 
                if (!lag_once) {
                        lag_once = true;
-                       printk_sched("sched: DL replenish lagged to much\n");
+                       printk_deferred("sched: DL replenish lagged to much\n");
                }
                dl_se->deadline = rq_clock(rq) + pi_se->dl_deadline;
                dl_se->runtime = pi_se->dl_runtime;
index bd2267ad404fa78de092b8bc8f228cfea2dca87b..c19b3cc53b00a166c1d7a30cf6622a4f710fdb71 100644 (file)
@@ -857,7 +857,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 {
                        /*