[patch V4 10/37] x86/smpboot: Get rid of cpu_init_secondary()

Philippe Mathieu-Daudé philmd at linaro.org
Mon Jun 12 16:49:23 PDT 2023


On 12/5/23 23:07, Thomas Gleixner wrote:
> From: Thomas Gleixner <tglx at linutronix.de>
> 
> The synchronization of the AP with the control CPU is a SMP boot problem
> and has nothing to do with cpu_init().
> 
> Open code cpu_init_secondary() in start_secondary() and move
> wait_for_master_cpu() into the SMP boot code.
> 
> No functional change.
> 
> Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
> Tested-by: Michael Kelley <mikelley at microsoft.com>
> ---
>   arch/x86/include/asm/processor.h |    1 -
>   arch/x86/kernel/cpu/common.c     |   27 ---------------------------
>   arch/x86/kernel/smpboot.c        |   24 +++++++++++++++++++-----
>   3 files changed, 19 insertions(+), 33 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd at linaro.org>




More information about the linux-riscv mailing list