Skip to content

Commit d385feb

Browse files
auldpKAGA-KOKO
authored andcommitted
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 <pauld@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Valentin Schneider <vschneid@redhat.com> Link: https://lore.kernel.org/r/20221117162329.3164999-3-pauld@redhat.com
1 parent 64ea6e4 commit d385feb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/cpu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,6 +2690,7 @@ void __init boot_cpu_hotplug_init(void)
26902690
cpumask_set_cpu(smp_processor_id(), &cpus_booted_once_mask);
26912691
#endif
26922692
this_cpu_write(cpuhp_state.state, CPUHP_ONLINE);
2693+
this_cpu_write(cpuhp_state.target, CPUHP_ONLINE);
26932694
}
26942695

26952696
/*

0 commit comments

Comments
 (0)