Re: [PATCH v15 04/12] x86/smpboot: Reference count on smpboot_setup_warm_reset_vector()

From: Borislav Petkov
Date: Tue Mar 21 2023 - 07:41:28 EST


On Thu, Mar 16, 2023 at 10:21:01PM +0000, Usama Arif wrote:
> From: David Woodhouse <dwmw@xxxxxxxxxxxx>
>
> When bringing up a secondary CPU from do_boot_cpu(), the warm reset flag
> is set in CMOS and the starting IP for the trampoline written inside the
> BDA at 0x467. Once the CPU is running, the CMOS flag is unset and the
> value in the BDA cleared.
>
> To allow for parallel bringup of CPUs, add a reference count to track the
> number of CPUs currently bring brought up, and clear the state only when

s/bring //

> the count reaches zero.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette