]> www.infradead.org Git - users/jedix/linux-maple.git/commit
powerpc/crash: Fix non-smp kexec preparation
authorEddie James <eajames@linux.ibm.com>
Tue, 11 Feb 2025 16:20:54 +0000 (10:20 -0600)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 29 Apr 2025 06:10:46 +0000 (11:40 +0530)
commit882b25af265de8e05c66f72b9a29f6047102958f
tree551e3ff926fc7ffa7d588f2508e309c11e9ceaf1
parent497b7794aef03d525a5be05ae78dd7137c6861a5
powerpc/crash: Fix non-smp kexec preparation

In non-smp configurations, crash_kexec_prepare is never called in
the crash shutdown path. One result of this is that the crashing_cpu
variable is never set, preventing crash_save_cpu from storing the
NT_PRSTATUS elf note in the core dump.

Fixes: c7255058b543 ("powerpc/crash: save cpu register data in crash_smp_send_stop()")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250211162054.857762-1-eajames@linux.ibm.com
arch/powerpc/kexec/crash.c