]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Move the entire hart selection via lottery to SMP
authorAtish Patra <atishp@rivosinc.com>
Thu, 20 Jan 2022 09:09:16 +0000 (01:09 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 20 Jan 2022 17:27:11 +0000 (09:27 -0800)
commit2ada33c5353e93aae70004087396d491d43aa4e6
tree2d94289a034f5c2526ce06203d8dbb50a91def7c
parentdff9cb45c8b7a7ca5ad26822c86ec800b4773cd7
RISC-V: Move the entire hart selection via lottery to SMP

The booting hart selection via lottery is only useful for SMP systems.
Moreover, the lottery selection is only necessary for systems using
spinwait booting method. It is better to keep the entire lottery
selection together so that it can be disabled in future.

Move the lottery selection code to under CONFIG_SMP.

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/kernel/head.S