aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDavid Woodhouse <[email protected]>2023-03-16 22:21:01 +0000
committerThomas Gleixner <[email protected]>2023-03-21 13:35:53 +0100
commit805ae9dc3b1c4040a842eb1714e7744af27fd30d (patch)
tree500ae19c6167daaebcaec814015292373e1cb953 /lib/memory-notifier-error-inject.c
parent8f6be6d870e8a078fcc956fc2ff8d7cff67795ee (diff)
x86/smpboot: Reference count on smpboot_setup_warm_reset_vector()
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 the count reaches zero. Since the RTC spinlock is required to write to the CMOS, it can be used for mutual exclusion on the refcount too. Signed-off-by: David Woodhouse <[email protected]> Signed-off-by: Usama Arif <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Paul E. McKenney <[email protected]> Tested-by: Kim Phillips <[email protected]> Tested-by: Oleksandr Natalenko <[email protected]> Tested-by: Guilherme G. Piccoli <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions