ARM: kexec: fix kdump register saving on panic()
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 11 Apr 2018 17:24:01 +0000 (18:24 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sat, 19 May 2018 10:35:56 +0000 (11:35 +0100)
commit2d7b3c64431245c95b05a441669c074da10db943
tree8fe887d96dfe0fc4cda343ad253431ffff80476e
parentf2ae9de019e4e2807d812ec4fe1df7c34788a0a0
ARM: kexec: fix kdump register saving on panic()

When a panic() occurs, the kexec code uses smp_send_stop() to stop
the other CPUs, but this results in the CPU register state not being
saved, and gdb is unable to inspect the state of other CPUs.

Commit 0ee59413c967 ("x86/panic: replace smp_send_stop() with kdump
friendly version in panic path") addressed the issue on x86, but
ignored other architectures.  Address the issue on ARM by splitting
out the crash stop implementation to crash_smp_send_stop() and
adding the necessary protection.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/machine_kexec.c