diff options
author | Suren Baghdasaryan <surenb@google.com> | 2019-05-15 00:40:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-15 04:52:47 +0200 |
commit | 9289c5e6a78a5a9397df5fa60eb82b105abcfecf (patch) | |
tree | 65fab2526cadaefac925105db41ceffc9546f812 /kernel/sched/psi.c | |
parent | psi: introduce state_mask to represent stalled psi states (diff) | |
download | linux-9289c5e6a78a5a9397df5fa60eb82b105abcfecf.tar.xz linux-9289c5e6a78a5a9397df5fa60eb82b105abcfecf.zip |
psi: make psi_enable static
psi_enable is not used outside of psi.c, make it static.
Link: http://lkml.kernel.org/r/20190319235619.260832-3-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sched/psi.c')
-rw-r--r-- | kernel/sched/psi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index 22c1505ad290..281702de9772 100644 --- a/kernel/sched/psi.c +++ b/kernel/sched/psi.c @@ -140,9 +140,9 @@ static int psi_bug __read_mostly; DEFINE_STATIC_KEY_FALSE(psi_disabled); #ifdef CONFIG_PSI_DEFAULT_DISABLED -bool psi_enable; +static bool psi_enable; #else -bool psi_enable = true; +static bool psi_enable = true; #endif static int __init setup_psi(char *str) { |