powerpc/kexec: split CONFIG_KEXEC_FILE and CONFIG_CRASH_DUMP

CONFIG_KEXEC_FILE does not have to select CONFIG_CRASH_DUMP. Move
some code under CONFIG_CRASH_DUMP to support CONFIG_KEXEC_FILE and
!CONFIG_CRASH_DUMP case.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240226103010.589537-3-hbathini@linux.ibm.com
This commit is contained in:
Hari Bathini 2024-02-26 16:00:09 +05:30 • committed by Michael Ellerman
commit 33f2cc0a2e
2 changed files with 142 additions and 131 deletions