riscv: move boot alternatives to a slightly earlier
From: Heiko Stuebner <heiko@...> Date: Wed, 12 Jan 2022 21:15:04 +0100
Commit-Message
Move the application of boot alternatives to soc_early_init(). This allows to catch more generic cases of code needing patches than doing it in smp_prepare_boot_cpu() and also makes it actually work if CONFIG_SMP is disabled for whatever reason. The position is chosen mainly as it is before the actual soc early init runs but also already allows accessing the devicetree via fdt_* functions. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
arch/riscv/kernel/head.S | 2 ++ arch/riscv/kernel/smpboot.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)
Statistics
- 2 lines added
- 2 lines removed