Skip to content

Commit

Permalink
psi: make psi_enable static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Suren Baghdasaryan authored and Linus Torvalds committed May 15, 2019
1 parent 33b2d63 commit 9289c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/sched/psi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 9289c5e

Please sign in to comment.