aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r--kernel/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index ab860453841d..eee033134262 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -279,7 +279,8 @@ static int bringup_wait_for_ap(unsigned int cpu)
279 279
280 /* Wait for the CPU to reach CPUHP_AP_ONLINE_IDLE */ 280 /* Wait for the CPU to reach CPUHP_AP_ONLINE_IDLE */
281 wait_for_completion(&st->done); 281 wait_for_completion(&st->done);
282 BUG_ON(!cpu_online(cpu)); 282 if (WARN_ON_ONCE((!cpu_online(cpu))))
283 return -ECANCELED;
283 284
284 /* Unpark the stopper thread and the hotplug thread of the target cpu */ 285 /* Unpark the stopper thread and the hotplug thread of the target cpu */
285 stop_machine_unpark(cpu); 286 stop_machine_unpark(cpu);