mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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
This commit is contained in:
committed by
Peter Zijlstra
parent
a707df30c9
commit
0cce0fde49
@@ -203,7 +203,7 @@ struct sched_domain_topology_level {
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void set_sched_topology(struct sched_domain_topology_level *tl);
|
extern void __init set_sched_topology(struct sched_domain_topology_level *tl);
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_DEBUG
|
#ifdef CONFIG_SCHED_DEBUG
|
||||||
# define SD_INIT_NAME(type) .name = #type
|
# define SD_INIT_NAME(type) .name = #type
|
||||||
|
@@ -1681,7 +1681,7 @@ static struct sched_domain_topology_level *sched_domain_topology_saved;
|
|||||||
#define for_each_sd_topology(tl) \
|
#define for_each_sd_topology(tl) \
|
||||||
for (tl = sched_domain_topology; tl->mask; 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))
|
if (WARN_ON_ONCE(sched_smp_initialized))
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user