Skip to content

Commit 8893d58

Browse files
author
Fox Snowpatch
committed
1 parent 56e2adc commit 8893d58

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

arch/loongarch/kernel/smp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ core_initcall(ipi_pm_init);
476476
#endif
477477

478478
/* Preload SMP state for boot cpu */
479-
void smp_prepare_boot_cpu(void)
479+
void __init smp_prepare_boot_cpu(void)
480480
{
481481
unsigned int cpu, node, rr_node;
482482

arch/mips/kernel/smp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
439439
}
440440

441441
/* preload SMP state for boot cpu */
442-
void smp_prepare_boot_cpu(void)
442+
void __init smp_prepare_boot_cpu(void)
443443
{
444444
if (mp_ops->prepare_boot_cpu)
445445
mp_ops->prepare_boot_cpu();

arch/powerpc/kernel/smp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
11661166
cpu_smt_set_num_threads(num_threads, threads_per_core);
11671167
}
11681168

1169-
void smp_prepare_boot_cpu(void)
1169+
void __init smp_prepare_boot_cpu(void)
11701170
{
11711171
BUG_ON(smp_processor_id() != boot_cpuid);
11721172
#ifdef CONFIG_PPC64

include/linux/smp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static inline void on_each_cpu_cond(smp_cond_func_t cond_func,
109109
* Architecture specific boot CPU setup. Defined as empty weak function in
110110
* init/main.c. Architectures can override it.
111111
*/
112-
void smp_prepare_boot_cpu(void);
112+
void __init smp_prepare_boot_cpu(void);
113113

114114
#ifdef CONFIG_SMP
115115

0 commit comments

Comments
 (0)