Skip to contentSkip to conversation

sched/topology: Add __init for sched_init_domains

PATCH Applied Bing Huang 2 participants 2 messages Jan 5, 2023 Scheduler

lore
Share & tools
lore

Bing Huang

author
#0 lore raw

PATCH 1/1 sched/topology: Add __init for sched_init_domains

From: Bing Huang <[email protected]>

sched_init_domains is only used in initialization

---
 kernel/sched/topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/topology.c +1 -1
index dea9fa39e7c0..d93c3379e901 100644
@@ -2451,7 +2451,7 @@ void free_sched_domains(cpumask_var_t doms[], unsigned int ndoms)
  * Set up scheduler domains and groups.  For now this just excludes isolated
  * CPUs, but could be used to exclude other special cases in the future.
  */
-int sched_init_domains(const struct cpumask *cpu_map)
+int __init sched_init_domains(const struct cpumask *cpu_map)
 {
 	int err;
 
Signature · 1 line
2.25.1
merge bot Applied
#1 lore raw

[tip: sched/core] sched/topology: Add __init for sched_init_domains()

The following commit has been merged into the sched/core branch of tip:

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     ef90cf2281a013d359d24d51732af990badf6e03
Gitweb:        https://git.kernel.org/tip/ef90cf2281a013d359d24d51732af990badf6e03
Author:        Bing Huang <[email protected]>
AuthorDate:    Thu, 05 Jan 2023 09:49:43 +08:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Thu, 05 Jan 2023 11:42:13 +01:00

sched/topology: Add __init for sched_init_domains()

sched_init_domains() is only used in initialization

---
 kernel/sched/topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/topology.c +1 -1
index dea9fa3..d93c337 100644
@@ -2451,7 +2451,7 @@ void free_sched_domains(cpumask_var_t doms[], unsigned int ndoms)
  * Set up scheduler domains and groups.  For now this just excludes isolated
  * CPUs, but could be used to exclude other special cases in the future.
  */
-int sched_init_domains(const struct cpumask *cpu_map)
+int __init sched_init_domains(const struct cpumask *cpu_map)
 {
 	int err;