Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp65807pxk; Tue, 15 Sep 2020 20:46:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhstW+7WETw4EEMkLRg7k2T8PRoZp2jHr7XSfX4dJoAQTUjy7lTckn3QBDiytkAR4AKywy X-Received: by 2002:a05:6402:22fc:: with SMTP id dn28mr24791033edb.365.1600228009761; Tue, 15 Sep 2020 20:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600228009; cv=none; d=google.com; s=arc-20160816; b=VqwP7Oeon2SGGVQUjhEb5nhJNtQj6cRdmAd2j3O5gfuS4AfE7VV1aTAVOcIJpUqw7s M+ZqK9tQkSRdRYm019DsWvu9/KokEZmx9zDyr+t3FCXbj7JfK30miKSgyqe07ky2L7Dq mKL5G2hy9vOORjuSZ90gJeXokgE6xrndxOMMmMI6ovPgsit+2OfQ2h8RyBGvB0VZMOLx YCQj3eM2eyrP34WWZlrHzahlXUCiAQYsHiUYmYQJcXEf+BxiKKORj0JKQpKI0ezbZIdm FA3GFT3kyf2xcjsVpgB8Id9fui/9G7j0bt7v14CnOByc0DUb3HNMVeK4SyDezje39acw 8juA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=M2jHkMwWIkAL6Fk97BXglktMJUiqyoJgfmfSOMfQkUg=; b=PifJPXowdQQnBovGb1T52jvfp369i9b4VuTvNwi1bMKxNrgV/mGPPuhn8nvdeAsiPT IlDIaMliRe0WeORCACw8hkJfphCU0JvgvLLvcPVKx5H6+WAkTqOvFzGB3r+1OjNbHG2m rskixYvBu2SdHWoKbS81vUySLsqhbhIh8FQ1J3o8Da9mwwYRmaQSsUzu+WI9CEKaY0AV XqO4DreL8+3AOoR2ImgDVZWdEw4PU/NMYmsYu7ao7MXzOj1fSEjQRnA3XSQRQ/KHvl9E 30TYV5JpwwfZ4MxqI9CsLj8NZETW0KOzzAiIy0yiWoGiomFwp17dpIUoaukS71XO/Qq+ 7C+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si804638eda.448.2020.09.15.20.46.27; Tue, 15 Sep 2020 20:46:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726460AbgIPDpJ (ORCPT + 99 others); Tue, 15 Sep 2020 23:45:09 -0400 Received: from smtp25.cstnet.cn ([159.226.251.25]:39732 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726239AbgIPDpE (ORCPT ); Tue, 15 Sep 2020 23:45:04 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-05 (Coremail) with SMTP id zQCowAAnUFgWimFfo_WsAg--.60865S2; Wed, 16 Sep 2020 11:44:23 +0800 (CST) From: Xu Wang To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de Cc: linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] stats: Replace seq_printf with seq_puts Date: Wed, 16 Sep 2020 03:44:15 +0000 Message-Id: <20200916034415.25645-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowAAnUFgWimFfo_WsAg--.60865S2 X-Coremail-Antispam: 1UD129KBjvdXoWrWry7KFy5KFWfJrWkAFW5ZFb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q/1tbiCQIBA102Zk2htQAAsd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org seq_puts is a lot cheaper than seq_printf, so use that to print literal strings. Signed-off-by: Xu Wang --- kernel/sched/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/stats.c b/kernel/sched/stats.c index 750fb3c67eed..0818fe03407a 100644 --- a/kernel/sched/stats.c +++ b/kernel/sched/stats.c @@ -37,7 +37,7 @@ static int show_schedstat(struct seq_file *seq, void *v) rq->rq_cpu_time, rq->rq_sched_info.run_delay, rq->rq_sched_info.pcount); - seq_printf(seq, "\n"); + seq_putc(seq, '\n'); #ifdef CONFIG_SMP /* domain-specific stats */ -- 2.17.1