cpu/hotplug: Rework sparse_irq locking in bringup_cpu()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 12 May 2023 21:07:21 +0000 (23:07 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 15 May 2023 11:44:54 +0000 (13:44 +0200)
commit22b612e2d53f6e13ce7b55ed565a104512f0eb00
tree51d492a8078557494bbd309eec1c30fdf0c1f305
parentc8b7fb09d1bcfa61d4211f61542e1291e7b4cbad
cpu/hotplug: Rework sparse_irq locking in bringup_cpu()

There is no harm to hold sparse_irq lock until the upcoming CPU completes
in cpuhp_online_idle(). This allows to remove cpu_online() synchronization
from architecture code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Tested-by: Helge Deller <deller@gmx.de> # parisc
Tested-by: Guilherme G. Piccoli <gpiccoli@igalia.com> # Steam Deck
Link: https://lore.kernel.org/r/20230512205256.263722880@linutronix.de
kernel/cpu.c