* [PATCH] sched/topology: mark set_sched_topology() __init
@ 2023-06-03 7:36 Miaohe Lin
2023-06-12 15:39 ` Valentin Schneider
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Miaohe Lin @ 2023-06-03 7:36 UTC (permalink / raw)
To: mingo, peterz, juri.lelli, vincent.guittot
Cc: dietmar.eggemann, rostedt, bsegall, mgorman, bristot, vschneid,
linux-kernel, linmiaohe
All callers of set_sched_topology() are within __init section. Mark
it __init too.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
include/linux/sched/topology.h | 2 +-
kernel/sched/topology.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h
index 816df6cc444e..67b573d5bf28 100644
--- a/include/linux/sched/topology.h
+++ b/include/linux/sched/topology.h
@@ -203,7 +203,7 @@ struct sched_domain_topology_level {
#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
# define SD_INIT_NAME(type) .name = #type
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;
--
2.27.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] sched/topology: mark set_sched_topology() __init
2023-06-03 7:36 [PATCH] sched/topology: mark set_sched_topology() __init Miaohe Lin
@ 2023-06-12 15:39 ` Valentin Schneider
2023-06-15 11:38 ` [tip: sched/core] sched/topology: Mark " tip-bot2 for Miaohe Lin
2023-06-16 15:16 ` tip-bot2 for Miaohe Lin
2 siblings, 0 replies; 4+ messages in thread
From: Valentin Schneider @ 2023-06-12 15:39 UTC (permalink / raw)
To: Miaohe Lin, mingo, peterz, juri.lelli, vincent.guittot
Cc: dietmar.eggemann, rostedt, bsegall, mgorman, bristot,
linux-kernel, linmiaohe
On 03/06/23 15:36, Miaohe Lin wrote:
> All callers of set_sched_topology() are within __init section. Mark
> it __init too.
>
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tip: sched/core] sched/topology: Mark set_sched_topology() __init
2023-06-03 7:36 [PATCH] sched/topology: mark set_sched_topology() __init Miaohe Lin
2023-06-12 15:39 ` Valentin Schneider
@ 2023-06-15 11:38 ` tip-bot2 for Miaohe Lin
2023-06-16 15:16 ` tip-bot2 for Miaohe Lin
2 siblings, 0 replies; 4+ messages in thread
From: tip-bot2 for Miaohe Lin @ 2023-06-15 11:38 UTC (permalink / raw)
To: linux-tip-commits
Cc: Miaohe Lin, Peter Zijlstra (Intel),
Valentin Schneider, x86, linux-kernel
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 1a17ce3d7dd5fba3876ba459f0d037b691788123
Gitweb: https://git.kernel.org/tip/1a17ce3d7dd5fba3876ba459f0d037b691788123
Author: Miaohe Lin <linmiaohe@huawei.com>
AuthorDate: Sat, 03 Jun 2023 15:36:45 +08:00
Committer: Peter Zijlstra <peterz@infradead.org>
CommitterDate: Thu, 15 Jun 2023 13:28:21 +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
---
include/linux/sched/topology.h | 2 +-
kernel/sched/topology.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h
index 816df6c..67b573d 100644
--- a/include/linux/sched/topology.h
+++ b/include/linux/sched/topology.h
@@ -203,7 +203,7 @@ struct sched_domain_topology_level {
#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
# define SD_INIT_NAME(type) .name = #type
diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
index ca44722..cb92dc5 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;
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tip: sched/core] sched/topology: Mark set_sched_topology() __init
2023-06-03 7:36 [PATCH] sched/topology: mark set_sched_topology() __init Miaohe Lin
2023-06-12 15:39 ` Valentin Schneider
2023-06-15 11:38 ` [tip: sched/core] sched/topology: Mark " tip-bot2 for Miaohe Lin
@ 2023-06-16 15:16 ` tip-bot2 for Miaohe Lin
2 siblings, 0 replies; 4+ messages in thread
From: tip-bot2 for Miaohe Lin @ 2023-06-16 15:16 UTC (permalink / raw)
To: linux-tip-commits
Cc: Miaohe Lin, Peter Zijlstra (Intel),
Valentin Schneider, x86, linux-kernel
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 0cce0fde499a92c726cd2e24f7763644f7c9f971
Gitweb: https://git.kernel.org/tip/0cce0fde499a92c726cd2e24f7763644f7c9f971
Author: Miaohe Lin <linmiaohe@huawei.com>
AuthorDate: Sat, 03 Jun 2023 15:36:45 +08:00
Committer: Peter Zijlstra <peterz@infradead.org>
CommitterDate: Fri, 16 Jun 2023 17:08:01 +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
---
include/linux/sched/topology.h | 2 +-
kernel/sched/topology.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h
index 816df6c..67b573d 100644
--- a/include/linux/sched/topology.h
+++ b/include/linux/sched/topology.h
@@ -203,7 +203,7 @@ struct sched_domain_topology_level {
#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
# define SD_INIT_NAME(type) .name = #type
diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
index ca44722..cb92dc5 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;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-16 15:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-03 7:36 [PATCH] sched/topology: mark set_sched_topology() __init Miaohe Lin
2023-06-12 15:39 ` Valentin Schneider
2023-06-15 11:38 ` [tip: sched/core] sched/topology: Mark " tip-bot2 for Miaohe Lin
2023-06-16 15:16 ` tip-bot2 for Miaohe Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®