Skip to content

Commit 2dce993

Browse files
FlyGoatKAGA-KOKO
authored andcommitted
cpu/hotplug: Provide weak fallback for arch_cpuhp_init_parallel_bringup()
CONFIG_HOTPLUG_PARALLEL expects the architecture to implement arch_cpuhp_init_parallel_bringup() to decide whether paralllel hotplug is possible and to do the necessary architecture specific initialization. There are architectures which can enable it unconditionally and do not require architecture specific initialization. Provide a weak fallback for arch_cpuhp_init_parallel_bringup() so that such architectures are not forced to implement empty stub functions. Signed-off-by: Jiaxun Yang <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent c0e81a4 commit 2dce993

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kernel/cpu.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,6 +1829,11 @@ static inline const struct cpumask *cpuhp_get_primary_thread_mask(void)
18291829
}
18301830
#endif
18311831

1832+
bool __weak arch_cpuhp_init_parallel_bringup(void)
1833+
{
1834+
return true;
1835+
}
1836+
18321837
/*
18331838
* On architectures which have enabled parallel bringup this invokes all BP
18341839
* prepare states for each of the to be onlined APs first. The last state

0 commit comments

Comments
 (0)