aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Auld <[email protected]>2022-11-17 11:23:29 -0500
committerThomas Gleixner <[email protected]>2022-12-02 12:43:02 +0100
commitd385febc9a19635d4ef197bfad3e84729002f57c (patch)
treea6c218a191cddeab1fe823e15753aabd84f27a6e
parent64ea6e44f85b9b75925ebe1ba0e6e8430cc4e06f (diff)
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Valentin Schneider <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--kernel/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 979de993f853..3f704a8896b0 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);
}
/*