From patchwork Fri May 2 22:09:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 29600 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A4AE5202E7 for ; Fri, 2 May 2014 22:09:33 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id rd3sf24701839pab.7 for ; Fri, 02 May 2014 15:09:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=fSeY3VVacpPyuA2NOESr9gK+JPAKwMAwNPu3Z1DgCA8=; b=NE1zcpvLa2yAiA6AfUdGZNplx+Pk9LbJyplc+8+0zzJwFiWcqt+f/6j613L0YxvOw9 pOZhVdX9MnYWngVL7Xn+e2fA1ad1vIUOsuCRhB/qcFenlOqH8CMi/XcfSHWtpsNjdsjs r/JSN0fIyu1eVxTlvI3DUzEJcCdvfEi5yzCtLFDL9rgebnXlgIvt4Efc/tPhLMx7hnZ1 qw9iEDrks+8CkrgxHgGtu7girn3KHNThERyuI7XAgUh2VBNPVv4jh3AA0YdVnso4rFZm 4V6UbfXO87Bk97xvpOHuD02QeoR4EAl8bnTAC2+3pTjUoX6U9FjRBZ4Kugpl5LUHjjkd aHDA== X-Gm-Message-State: ALoCoQl7jYnNahsokfoWaIUOI9tpB3dvE+30gSf88L5hAPv5IGq1QwXcA7qBNQUymBNkCMcal5GW X-Received: by 10.66.149.67 with SMTP id ty3mr10095264pab.27.1399068572731; Fri, 02 May 2014 15:09:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.196 with SMTP id g62ls40591qge.76.gmail; Fri, 02 May 2014 15:09:32 -0700 (PDT) X-Received: by 10.221.20.199 with SMTP id qp7mr14868201vcb.24.1399068572568; Fri, 02 May 2014 15:09:32 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id jl10si58739veb.123.2014.05.02.15.09.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 May 2014 15:09:32 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id hy4so6129609vcb.12 for ; Fri, 02 May 2014 15:09:32 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr1428624vcb.32.1399068572457; Fri, 02 May 2014 15:09:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp134363vcb; Fri, 2 May 2014 15:09:32 -0700 (PDT) X-Received: by 10.67.1.202 with SMTP id bi10mr39753908pad.68.1399068571399; Fri, 02 May 2014 15:09:31 -0700 (PDT) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id xy8si241664pab.324.2014.05.02.15.09.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 May 2014 15:09:31 -0700 (PDT) Received-SPF: none (google.com: john.stultz@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.41; Received: by mail-pa0-f41.google.com with SMTP id lj1so3390288pab.28 for ; Fri, 02 May 2014 15:09:30 -0700 (PDT) X-Received: by 10.66.164.165 with SMTP id yr5mr39681414pab.63.1399068570206; Fri, 02 May 2014 15:09:30 -0700 (PDT) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id nw13sm1693724pab.37.2014.05.02.15.09.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 May 2014 15:09:29 -0700 (PDT) From: John Stultz To: LKML Cc: John Stultz , Jan Kara , Peter Zijlstra , Jiri Bohac , Thomas Gleixner , Ingo Molnar , Andrew Morton , Steven Rostedt Subject: [PATCH 2/4] printk: Rename printk_sched to printk_deferred Date: Fri, 2 May 2014 15:09:16 -0700 Message-Id: <1399068558-2373-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1399068558-2373-1-git-send-email-john.stultz@linaro.org> References: <1399068558-2373-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 and name of the associated buffer. No logic changes. Cc: Jan Kara Cc: Peter Zijlstra Cc: Jiri Bohac Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Andrew Morton Cc: Steven Rostedt Signed-off-by: John Stultz --- 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(-) diff --git a/include/linux/printk.h b/include/linux/printk.h index 8752f75..7847301 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h @@ -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; } diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index bf62f2b..ffcb487 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2584,7 +2584,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; diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 805b8a9..263c790 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -1336,7 +1336,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); } } diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index b080957..657ed68 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -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; diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 7795e29..e7dc728 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -896,7 +896,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 { /*