riscv: add a generic implementation for cleanup_before_linux()
authorYao Zi <ziyao@disroot.org>
Thu, 23 Jan 2025 09:11:33 +0000 (09:11 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 3 Feb 2025 07:26:06 +0000 (15:26 +0800)
commitf88e3b77395255ad001b9237a8e57b932330d673
treeda438cead2611b31c01f4664d58c6c72202a6aa9
parent47d90f6bd30ad3c5cc909131dbf80081a8685e5d
riscv: add a generic implementation for cleanup_before_linux()

Most RISC-V SoCs have similar cleanup_before_linux() functions. Let's
provide a weak symbol as fallback to reduce duplicated code.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/cpu.c