Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Bing Huang and committed by
Ingo Molnar
ef90cf22 bbd0b031

+1 -1
+1 -1
kernel/sched/topology.c
··· 2451 2451 * Set up scheduler domains and groups. For now this just excludes isolated 2452 2452 * CPUs, but could be used to exclude other special cases in the future. 2453 2453 */ 2454 - int sched_init_domains(const struct cpumask *cpu_map) 2454 + int __init sched_init_domains(const struct cpumask *cpu_map) 2455 2455 { 2456 2456 int err; 2457 2457