hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm64/kernel/smp.c
....@@ -1097,10 +1097,8 @@
10971097 * If this cpu is the only one alive at this point in time, online or
10981098 * not, there are no stop messages to be sent around, so just back out.
10991099 */
1100
- if (num_other_online_cpus() == 0) {
1101
- sdei_mask_local_cpu();
1102
- return;
1103
- }
1100
+ if (num_other_online_cpus() == 0)
1101
+ goto skip_ipi;
11041102
11051103 cpumask_copy(&mask, cpu_online_mask);
11061104 cpumask_clear_cpu(smp_processor_id(), &mask);
....@@ -1119,7 +1117,9 @@
11191117 pr_warn("SMP: failed to stop secondary CPUs %*pbl\n",
11201118 cpumask_pr_args(&mask));
11211119
1120
+skip_ipi:
11221121 sdei_mask_local_cpu();
1122
+ sdei_handler_abort();
11231123 }
11241124
11251125 bool smp_crash_stop_failed(void)