On Sun, 2023-07-02 at 15:40 -0400, Sasha Levin wrote:
From: Thomas Gleixner tglx@linutronix.de
[ Upstream commit f6f1ae9128d2a080ecdd55f85e8a0ca3ed1d58eb ]
Parallel AP bringup requires that the APs can run fully parallel through the early startup code including the real mode trampoline.
To prepare for this implement a bit-spinlock to serialize access to the real mode stack so that parallel upcoming APs are not going to corrupt each others stack while going through the real mode startup code.
This is also preparation for the parallel CPU bringup and (again, unless I'm missing something) doesn't need to be backported to stable.