Following
6ff560f7f ("x86/SMP: don't try to stop already stopped CPUs")
an incorrect condition was placed into kexec transition path
leaving crashing CPU always online breaking kdump kernel entering.
Correct it by unifying the condition with smp_send_stop().
Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
master commit:
f56813f3470c5b4987963c3c41e4fe16b95c5a3f
master date: 2019-07-22 18:02:24 +0100
*/
iommu_crash_shutdown();
- if ( num_online_cpus() > 1 )
+ if ( cpu_online(cpu) )
{
__stop_this_cpu();