Skip to content
Commit 82c08c3e authored by Yufen Wang's avatar Yufen Wang Committed by Russell King
Browse files

ARM: 8808/1: kexec:offline panic_smp_self_stop CPU



In case panic() and panic() called at the same time on different CPUS.
For example:
CPU 0:
  panic()
     __crash_kexec
       machine_crash_shutdown
         crash_smp_send_stop
       machine_kexec
         BUG_ON(num_online_cpus() > 1);

CPU 1:
  panic()
    local_irq_disable
    panic_smp_self_stop

If CPU 1 calls panic_smp_self_stop() before crash_smp_send_stop(), kdump
fails. CPU1 can't receive the ipi irq, CPU1 will be always online.
To fix this problem, this patch split out the panic_smp_self_stop()
and add set_cpu_online(smp_processor_id(), false).

Signed-off-by: default avatarYufen Wang <wangyufen@huawei.com>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent e2b85f70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment