summaryrefslogtreecommitdiffstats
path: root/kernel/sched/topology.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2023-06-03 15:36:45 +0800
committerPeter Zijlstra <peterz@infradead.org>2023-06-16 17:08:01 +0200
commit0cce0fde499a92c726cd2e24f7763644f7c9f971 (patch)
tree1539408fa3293672ee156be3bb03393aa7504327 /kernel/sched/topology.c
parenta707df30c9438a9d4d0a43ae7f22b59b078f94c4 (diff)
downloadlinux-stable-0cce0fde499a92c726cd2e24f7763644f7c9f971.tar.gz
linux-stable-0cce0fde499a92c726cd2e24f7763644f7c9f971.tar.bz2
linux-stable-0cce0fde499a92c726cd2e24f7763644f7c9f971.zip
sched/topology: Mark set_sched_topology() __init
All callers of set_sched_topology() are within __init section. Mark it __init too. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Valentin Schneider <vschneid@redhat.com> Link: https://lore.kernel.org/r/20230603073645.1173332-1-linmiaohe@huawei.com
Diffstat (limited to 'kernel/sched/topology.c')
-rw-r--r--kernel/sched/topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
index ca4472281c28..cb92dc5f5646 100644
--- a/kernel/sched/topology.c
+++ b/kernel/sched/topology.c
@@ -1681,7 +1681,7 @@ static struct sched_domain_topology_level *sched_domain_topology_saved;
#define for_each_sd_topology(tl) \
for (tl = sched_domain_topology; tl->mask; tl++)
-void set_sched_topology(struct sched_domain_topology_level *tl)
+void __init set_sched_topology(struct sched_domain_topology_level *tl)
{
if (WARN_ON_ONCE(sched_smp_initialized))
return;