From: Phil Auld Date: Thu, 17 Nov 2022 16:23:29 +0000 (-0500) Subject: cpu/hotplug: Set cpuhp target for boot cpu X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d385febc9a19635d4ef197bfad3e84729002f57c;p=linux.git cpu/hotplug: Set cpuhp target for boot cpu Since the boot cpu does not go through the hotplug process it ends up with state == CPUHP_ONLINE but target == CPUHP_OFFLINE. So set the target to match in boot_cpu_hotplug_init(). Signed-off-by: Phil Auld Signed-off-by: Thomas Gleixner Reviewed-by: Valentin Schneider Link: https://lore.kernel.org/r/20221117162329.3164999-3-pauld@redhat.com --- diff --git a/kernel/cpu.c b/kernel/cpu.c index 979de993f8538..3f704a8896b09 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -2690,6 +2690,7 @@ void __init boot_cpu_hotplug_init(void) cpumask_set_cpu(smp_processor_id(), &cpus_booted_once_mask); #endif this_cpu_write(cpuhp_state.state, CPUHP_ONLINE); + this_cpu_write(cpuhp_state.target, CPUHP_ONLINE); } /*