Skip to content

Commit 35cd21f

Browse files
MiaoheLinPeter Zijlstra
authored andcommitted
sched/psi: make psi_cgroups_enabled static
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
1 parent 548796e commit 35cd21f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/sched/psi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
static int psi_bug __read_mostly;
141141

142142
DEFINE_STATIC_KEY_FALSE(psi_disabled);
143-
DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled);
143+
static DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled);
144144

145145
#ifdef CONFIG_PSI_DEFAULT_DISABLED
146146
static bool psi_enable;

0 commit comments

Comments
 (0)