diff --git a/kernel/cpu.c b/kernel/cpu.c index c996963325bb..5691a3c8bc92 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -1000,7 +1000,7 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen, struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, cpu); int prev_state, ret = 0; - if (num_active_cpus() == 1) + if (num_online_cpus() == 1) return -EBUSY; if (!cpu_present(cpu))