]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Move spinwait booting method to its own config
authorAtish Patra <atishp@rivosinc.com>
Thu, 20 Jan 2022 09:09:17 +0000 (01:09 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 20 Jan 2022 17:27:16 +0000 (09:27 -0800)
commite57b14b4666e6109089ea471d33035b2092e6f97
treefa6687a62f494303c5baf45bcb05aefe9ba1526d
parent017527dc86ecd36a470fb0ddda563af37546a167
RISC-V: Move spinwait booting method to its own config

The spinwait booting method should only be used for platforms with older
firmware without SBI HSM extension or M-mode firmware because spinwait
method can't support cpu hotplug, kexec or sparse hartid. It is better
to move the entire spinwait implementation to its own config which can
be disabled if required. It is enabled by default to maintain backward
compatibility and M-mode Linux.

Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/kernel/Makefile
arch/riscv/kernel/cpu_ops.c
arch/riscv/kernel/head.S
arch/riscv/kernel/head.h