+ printk-rename-printk_sched-to-printk_deferred.patch added to -mm tree
Subject: + printk-rename-printk_sched-to-printk_deferred.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 05 May 2014 15:07:13 -0700
The patch titled
Subject: printk: rename printk_sched to printk_deferred
has been added to the -mm tree. Its filename is
printk-rename-printk_sched-to-printk_deferred.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/printk-rename-printk_sched-to-printk_deferred.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/printk-rename-printk_sched-to-printk_deferred.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: John Stultz <[email protected]>
Subject: 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.
---
include/linux/printk.h | 6 +++--- kernel/printk/printk.c | 2 +- kernel/sched/core.c | 2 +- kernel/sched/deadline.c | 2 +- kernel/sched/rt.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-)
include/linux/printk.h renamed from include/linux/printk.h~printk-rename-printk_sched-to-printk_deferred +3 -3
@@ -128,9 +128,9 @@ asmlinkage __printf(1, 2) __coldint 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 ; }
kernel/printk/printk.c renamed from kernel/printk/printk.c~printk-rename-printk_sched-to-printk_deferred +1 -1
@@ -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;
kernel/sched/core.c renamed from kernel/sched/core.c~printk-rename-printk_sched-to-printk_deferred +1 -1
@@ -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); } }
kernel/sched/deadline.c renamed from kernel/sched/deadline.c~printk-rename-printk_sched-to-printk_deferred +1 -1
@@ -352,7 +352,7 @@ static void replenish_dl_entity(struct sif (!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;
kernel/sched/rt.c renamed from kernel/sched/rt.c~printk-rename-printk_sched-to-printk_deferred +1 -1
@@ -857,7 +857,7 @@ static int sched_rt_runtime_exceeded(strif (!once) { once = true; -printk_sched ("sched: RT throttling activated\n" ); +printk_deferred ("sched: RT throttling activated\n" ); } }else {/*
_
Patches currently in -mm which might be from [email protected] are
printk-disable-preemption-for-printk_sched.patch printk-rename-printk_sched-to-printk_deferred.patch printk-add-printk_deferred_once.patch timekeeping-use-printk_deferred-when-holding-timekeeping-seqlock.patch