summaryrefslogtreecommitdiff
path: root/kernel/sched
diff options
context:
space:
mode:
authorBing Huang <huangbing@kylinos.cn>2023-01-05 09:49:43 +0800
committerIngo Molnar <mingo@kernel.org>2023-01-05 11:42:13 +0100
commitef90cf2281a013d359d24d51732af990badf6e03 (patch)
treec5cb15144219a57fce20e362cb09f38e783d6fa8 /kernel/sched
parentbbd0b031509b880b4e9a880bb27ca2a30ad081ab (diff)
downloadlwn-ef90cf2281a013d359d24d51732af990badf6e03.tar.gz
lwn-ef90cf2281a013d359d24d51732af990badf6e03.zip
sched/topology: Add __init for sched_init_domains()
sched_init_domains() is only used in initialization Signed-off-by: Bing Huang <huangbing@kylinos.cn> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20230105014943.9857-1-huangbing775@126.com
Diffstat (limited to 'kernel/sched')
-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 dea9fa39e7c0..d93c3379e901 100644
--- a/kernel/sched/topology.c
+++ b/kernel/sched/topology.c
@@ -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;