From: Suren Baghdasaryan Date: Wed, 30 Jan 2019 23:41:54 +0000 (+1100) Subject: FROMLIST: psi: make psi_enable static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a0081500b4e49235f6a920c4bdbac7f108d52034;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git FROMLIST: psi: make psi_enable static psi_enable is not used outside of psi.c, make it static. Suggested-by: Andrew Morton Signed-off-by: Suren Baghdasaryan (not upstream yet, latest version published at: https://lore.kernel.org/patchwork/patch/1052415/) Bug: 127712811 Bug: 129157727 Test: lmkd in PSI mode Change-Id: I3c422d6c0c4299095c6ba05cfe942a2b00705f29 Signed-off-by: Suren Baghdasaryan --- 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) {