sched/psi: make psi_cgroups_enabled static
Subsystems (2)
PATCH 1/1 sched/psi: make psi_cgroups_enabled static
The static key psi_cgroups_enabled is only used inside file psi.c. Make it static.
--- kernel/sched/psi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/psi.c +1 -1
@@ -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;
Signature · 1 line
2.27.0
Quoted 5 lines · Miaohe Lin
The static key
psi_cgroups_enabledis only used inside filepsi.c. Make it static.Signed-off-by Miaohe Lin <[email protected]>
Quoted 20 lines
--- kernel/sched/psi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/sched/psi.c +1
-2@@ -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
Johannes Weiner
maintainerQuoted 4 lines · Miaohe Lin
The static key
psi_cgroups_enabledis only used inside filepsi.c. Make it static.Signed-off-by Miaohe Lin <[email protected]>
This was previously submitted by Tom:
https://lore.kernel.org/lkml/[email protected]/
Peter, could you please pick this up?
Thanks!
Quoted 11 lines · Johannes Weiner
Quoted 4 lines · Miaohe Lin
The static key
psi_cgroups_enabledis only used inside filepsi.c. Make it static.Signed-off-by Miaohe Lin <[email protected]>This was previously submitted by Tom:
https://lore.kernel.org/lkml/[email protected]/Peter, could you please pick this up?
friendly ping.. :)
Quoted 3 lines
Thanks!
.
Peter Zijlstra
maintainerQuoted 10 lines · Johannes Weiner
Quoted 4 lines · Miaohe Lin
The static key
psi_cgroups_enabledis only used inside filepsi.c. Make it static.Signed-off-by Miaohe Lin <[email protected]>This was previously submitted by Tom:
https://lore.kernel.org/lkml/[email protected]/Peter, could you please pick this up?
Found it, will queue after -rc1.
The following commit has been merged into the sched/core branch of tip:
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 35cd21f6292c6656aaab6066a1fa13cd11ca27f5 Gitweb: https://git.kernel.org/tip/35cd21f6292c6656aaab6066a1fa13cd11ca27f5 Author: Miaohe Lin <[email protected]> AuthorDate: Thu, 25 May 2023 18:34:28 +08:00 Committer: Peter Zijlstra <[email protected]> CommitterDate: Thu, 13 Jul 2023 15:21:50 +02:00
sched/psi: make psi_cgroups_enabled static
The static key psi_cgroups_enabled is only used inside file psi.c. Make it static.
--- kernel/sched/psi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/psi.c +1 -1
@@ -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;