diff --git a/kernel/cpu.c b/kernel/cpu.c index 90ec528a6e32072f1111a26a90788a583e893cd5..ed44d7d34c2d9bfc08093af4854dc78bf7232b21 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -2278,6 +2278,8 @@ void __init boot_cpu_init(void) */ void __init boot_cpu_hotplug_init(void) { +#ifdef CONFIG_SMP this_cpu_write(cpuhp_state.booted_once, true); +#endif this_cpu_write(cpuhp_state.state, CPUHP_ONLINE); }