diff options
author | Bibo Mao <maobibo@loongson.cn> | 2024-09-07 16:27:20 +0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-09-08 16:01:10 +0200 |
commit | 1d07085402d122f223bda3f8b72bea37a46ee0c9 (patch) | |
tree | 0231e9896dbefecf9fffd260132aaa30dd2b6873 /include/linux | |
parent | 8db70faeab9005cbab36e05ba94383075b5cb5db (diff) |
smp: Mark smp_prepare_boot_cpu() __init
smp_prepare_boot_cpu() is only called during boot, hence mark it as
__init.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Link: https://lore.kernel.org/all/20240907082720.452148-1-maobibo@loongson.cn
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/smp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h index fcd61dfe2af3..6a0813c905d0 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h @@ -109,7 +109,7 @@ static inline void on_each_cpu_cond(smp_cond_func_t cond_func, * Architecture specific boot CPU setup. Defined as empty weak function in * init/main.c. Architectures can override it. */ -void smp_prepare_boot_cpu(void); +void __init smp_prepare_boot_cpu(void); #ifdef CONFIG_SMP |