sched/psi: make psi_cgroups_enabled static
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 25 May 2023 10:34:28 +0000 (18:34 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 13 Jul 2023 13:21:50 +0000 (15:21 +0200)
The static key psi_cgroups_enabled is only used inside file psi.c.
Make it static.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Link: https://lore.kernel.org/r/20230525103428.49712-1-linmiaohe@huawei.com
kernel/sched/psi.c

index 81fca77397f6a2f194dccb26a02d361579de8bea..2ccb0b2ebd78ccf0a81d37c1a55bc50c7751470d 100644 (file)
 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;