]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: also select ARCH_KEEP_MEMBLOCK if kexec is selected
authorHan Gao <gaohan@iscas.ac.cn>
Tue, 19 May 2026 16:55:46 +0000 (00:55 +0800)
committerPaul Walmsley <pjw@kernel.org>
Sun, 7 Jun 2026 11:10:01 +0000 (05:10 -0600)
commitbce35135fecc7a73c60aaa9d2ec699ead1e32661
tree9c35a8815e8e238fa95626ccfc480b760cf273e3
parentd3e0634787a234b40a740b9c398fd320a68db81c
riscv: also select ARCH_KEEP_MEMBLOCK if kexec is selected

On RISC-V, also select ARCH_KEEP_MEMBLOCK if kexec is selected, not
only if ACPI is selected.  This is because kexec requires the memblock
areas to be kept after boot to initialize the secondary kernel.  This
is needed for both Device Tree and ACPI platforms.

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
Link: https://patch.msgid.link/20260519165546.123105-1-gaohan@iscas.ac.cn
[pjw@kernel.org: change to add the dependency on kexec, rather than making it unconditional;
 rewrite the patch description accordingly]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/Kconfig