diff options
author | Suren Baghdasaryan <surenb@google.com> | 2019-04-26 10:27:14 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-05-15 11:54:02 +1000 |
commit | 0707a9bf825af44d1a183ab42c5f8de0d32bfc25 (patch) | |
tree | 697c844fd2ceb0851fd3ba6b130c85afb44dd32c /kernel/sched | |
parent | 4482800b900e6ad8ef6822eca2d3d3dd615a26d6 (diff) |
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: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'kernel/sched')
-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) { |