[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200427032338.73743-1-songmuchun@bytedance.com>
Date: Mon, 27 Apr 2020 11:23:38 +0800
From: Muchun Song <songmuchun@...edance.com>
To: mingo@...nel.org, peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
bsegall@...gle.com, mgorman@...e.de
Cc: linux-kernel@...r.kernel.org,
Muchun Song <songmuchun@...edance.com>,
Steven Rostedt <rostedt@...dmis.org>
Subject: [PATCH RESEND] sched/fair: add __init to sched_init_granularity functions
Function sched_init_granularity() is only called from __init
functions, so mark it __init as well.
Signed-off-by: Muchun Song <songmuchun@...edance.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@...dmis.org>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 1141c7e77564d..6f05843c76d7d 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -191,7 +191,7 @@ static void update_sysctl(void)
#undef SET_SYSCTL
}
-void sched_init_granularity(void)
+void __init sched_init_granularity(void)
{
update_sysctl();
}
--
2.11.0
Powered by blists - more mailing lists