Commit aac74dc495456412c4130a1167ce4beb6c1f0b38

Authored by John Stultz
Committed by Linus Torvalds
1 parent 8195460626

printk: rename printk_sched to printk_deferred

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>

Showing 5 changed files with 7 additions and 7 deletions Side-by-side Diff

include/linux/printk.h
... ... @@ -128,9 +128,9 @@
128 128 int printk(const char *fmt, ...);
129 129  
130 130 /*
131   - * Special printk facility for scheduler use only, _DO_NOT_USE_ !
  131 + * Special printk facility for scheduler/timekeeping use only, _DO_NOT_USE_ !
132 132 */
133   -__printf(1, 2) __cold int printk_sched(const char *fmt, ...);
  133 +__printf(1, 2) __cold int printk_deferred(const char *fmt, ...);
134 134  
135 135 /*
136 136 * Please don't use printk_ratelimit(), because it shares ratelimiting state
... ... @@ -165,7 +165,7 @@
165 165 return 0;
166 166 }
167 167 static inline __printf(1, 2) __cold
168   -int printk_sched(const char *s, ...)
  168 +int printk_deferred(const char *s, ...)
169 169 {
170 170 return 0;
171 171 }
kernel/printk/printk.c
... ... @@ -2585,7 +2585,7 @@
2585 2585 preempt_enable();
2586 2586 }
2587 2587  
2588   -int printk_sched(const char *fmt, ...)
  2588 +int printk_deferred(const char *fmt, ...)
2589 2589 {
2590 2590 va_list args;
2591 2591 int r;
... ... @@ -1367,7 +1367,7 @@
1367 1367 * leave kernel.
1368 1368 */
1369 1369 if (p->mm && printk_ratelimit()) {
1370   - printk_sched("process %d (%s) no longer affine to cpu%d\n",
  1370 + printk_deferred("process %d (%s) no longer affine to cpu%d\n",
1371 1371 task_pid_nr(p), p->comm, cpu);
1372 1372 }
1373 1373 }
kernel/sched/deadline.c
... ... @@ -352,7 +352,7 @@
352 352  
353 353 if (!lag_once) {
354 354 lag_once = true;
355   - printk_sched("sched: DL replenish lagged to much\n");
  355 + printk_deferred("sched: DL replenish lagged to much\n");
356 356 }
357 357 dl_se->deadline = rq_clock(rq) + pi_se->dl_deadline;
358 358 dl_se->runtime = pi_se->dl_runtime;
... ... @@ -896,7 +896,7 @@
896 896  
897 897 if (!once) {
898 898 once = true;
899   - printk_sched("sched: RT throttling activated\n");
  899 + printk_deferred("sched: RT throttling activated\n");
900 900 }
901 901 } else {
902 902 /*