Message ID | 20230525103428.49712-1-linmiaohe@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp78049vqr; Wed, 24 May 2023 20:10:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7i/7NN3LQvoIcExkItPq9dEyThe5epD+p1/RwYWwFiMHOXjRXk315y/LvyUbek5+0tJj0l X-Received: by 2002:a05:6a00:2d1d:b0:64d:3e7f:7121 with SMTP id fa29-20020a056a002d1d00b0064d3e7f7121mr5582933pfb.22.1684984219108; Wed, 24 May 2023 20:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684984219; cv=none; d=google.com; s=arc-20160816; b=qTQRiPG5UnWWwfyzsJfUuj+PamKVfhb5sKPmn0jrBNaPehQQXF85Cwi9bCbfPAZdQU afNewXuovMnNciwTYuOdY0jPdTQaWakIS91W4EPf7mclvGz2AEojs6vf5V8EIvbJ346o RIHyehrLnOOsfay7CL/RQ/EzMjRGmMY0EGrAZHbU+/lCfou6D2RiQ9a2pjN6xEO78+8Q iKcmceNOFQIgOef70hHQcKLhmJMrtHnO3sZ0R5/sM0cyFj5lMuqY3ICXaaRPT7vKPLPH 6r3eSgP7iQePHMksvzeGTOZPuiLaAaVphAo0AEMh3dau0HtzEe9rtW1tMXWZlDzT9WsI J0/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ACRW/iGiyqlXoUQSCVIJAPTY//4SqJbzaGuGdA3Lfaw=; b=sVVFm31CLU0kOOCBp9qORhR0T4s7CFqmsl+3HiKj2QTqR5aAVtLAS4bJh7eg0PwPoT QPODAS3Ye56SacmiJIiSRtVPkKSvSQ7qm0e86Qf2qMa5S+AjtDokLAWXiLPkQTqVa0PB d4LTioiIslCYxcX7pVaxihidFcFCYs9ku+MtVFwE2cGKfqBHxCLQ5QG61YFTG6WvT1Oy MGnUAhihttYt/yvHCjwMdVukU3Y1R+FN68B7YlDNheWGNYrxzNTx5B9F9SAjT2U/kfNH TpN7globQNnuU6qjGpwGiYK097PJtU36fHjZz6kizbGZ39FSV1da6zKUDJS5IaDD1MMI mk8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z25-20020aa79599000000b0063b1fbbb8c5si408782pfj.131.2023.05.24.20.10.06; Wed, 24 May 2023 20:10:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237564AbjEYCnM (ORCPT <rfc822;ahmedalshaiji.dev@gmail.com> + 99 others); Wed, 24 May 2023 22:43:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234957AbjEYCnK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 24 May 2023 22:43:10 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3225DE6 for <linux-kernel@vger.kernel.org>; Wed, 24 May 2023 19:43:09 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QRXNq1byQzsRxN; Thu, 25 May 2023 10:40:59 +0800 (CST) Received: from huawei.com (10.175.104.170) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 25 May 2023 10:43:06 +0800 From: Miaohe Lin <linmiaohe@huawei.com> To: <hannes@cmpxchg.org>, <surenb@google.com>, <mingo@redhat.com>, <peterz@infradead.org>, <juri.lelli@redhat.com>, <vincent.guittot@linaro.org> CC: <dietmar.eggemann@arm.com>, <rostedt@goodmis.org>, <bsegall@google.com>, <mgorman@suse.de>, <bristot@redhat.com>, <vschneid@redhat.com>, <linux-kernel@vger.kernel.org>, <linmiaohe@huawei.com> Subject: [PATCH] sched/psi: make psi_cgroups_enabled static Date: Thu, 25 May 2023 18:34:28 +0800 Message-ID: <20230525103428.49712-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.170] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766834012048098039?= X-GMAIL-MSGID: =?utf-8?q?1766834012048098039?= |
Series |
sched/psi: make psi_cgroups_enabled static
|
|
Commit Message
Miaohe Lin
May 25, 2023, 10:34 a.m. UTC
The static key psi_cgroups_enabled is only used inside file psi.c.
Make it static.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
kernel/sched/psi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Wed, May 24, 2023 at 7:43 PM Miaohe Lin <linmiaohe@huawei.com> wrote: > > The static key psi_cgroups_enabled is only used inside file psi.c. > Make it static. > > Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Suren Baghdasaryan <surenb@google.com> > --- > kernel/sched/psi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c > index 81fca77397f6..2ccb0b2ebd78 100644 > --- a/kernel/sched/psi.c > +++ b/kernel/sched/psi.c > @@ -140,7 +140,7 @@ > static int psi_bug __read_mostly; > > DEFINE_STATIC_KEY_FALSE(psi_disabled); > -DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled); > +static DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled); > > #ifdef CONFIG_PSI_DEFAULT_DISABLED > static bool psi_enable; > -- > 2.27.0 >
On Thu, May 25, 2023 at 06:34:28PM +0800, Miaohe Lin wrote: > The static key psi_cgroups_enabled is only used inside file psi.c. > Make it static. > > Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> This was previously submitted by Tom: https://lore.kernel.org/lkml/20230405163602.1939400-1-trix@redhat.com/ Peter, could you please pick this up? Thanks!
On 2023/5/26 1:49, Johannes Weiner wrote: > On Thu, May 25, 2023 at 06:34:28PM +0800, Miaohe Lin wrote: >> The static key psi_cgroups_enabled is only used inside file psi.c. >> Make it static. >> >> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> > > This was previously submitted by Tom: > https://lore.kernel.org/lkml/20230405163602.1939400-1-trix@redhat.com/ > > Peter, could you please pick this up? > friendly ping.. :) > Thanks! > . >
On Thu, May 25, 2023 at 01:49:37PM -0400, Johannes Weiner wrote: > On Thu, May 25, 2023 at 06:34:28PM +0800, Miaohe Lin wrote: > > The static key psi_cgroups_enabled is only used inside file psi.c. > > Make it static. > > > > Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> > > This was previously submitted by Tom: > https://lore.kernel.org/lkml/20230405163602.1939400-1-trix@redhat.com/ > > Peter, could you please pick this up? Found it, will queue after -rc1.
diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index 81fca77397f6..2ccb0b2ebd78 100644 --- a/kernel/sched/psi.c +++ b/kernel/sched/psi.c @@ -140,7 +140,7 @@ static int psi_bug __read_mostly; DEFINE_STATIC_KEY_FALSE(psi_disabled); -DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled); +static DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled); #ifdef CONFIG_PSI_DEFAULT_DISABLED static bool psi_enable;