On 12/5/23 23:07, Thomas Gleixner wrote:
From: Thomas Gleixner <t...@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 <t...@linutronix.de>
Tested-by: Michael Kelley <mikel...@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é <phi...@linaro.org>


Reply via email to