OSDN Git Service

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)
commit2ffc48fc7071da4b2d881b0f21d37ed05feb697b
treefa6687a62f494303c5baf45bcb05aefe9ba1526d
parent0b39eb38f85908e039ce8c9f09868438e029757b
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