aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/riscv/kernel/head.h
diff options
context:
space:
mode:
authorAtish Patra <atishp@rivosinc.com>2022-01-20 01:09:17 -0800
committerPalmer Dabbelt <palmer@rivosinc.com>2022-01-20 09:27:16 -0800
commit2ffc48fc7071da4b2d881b0f21d37ed05feb697b (patch)
treefa6687a62f494303c5baf45bcb05aefe9ba1526d /arch/riscv/kernel/head.h
parentRISC-V: Move the entire hart selection via lottery to SMP (diff)
downloadwireguard-linux-2ffc48fc7071da4b2d881b0f21d37ed05feb697b.tar.xz
wireguard-linux-2ffc48fc7071da4b2d881b0f21d37ed05feb697b.zip
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>
Diffstat (limited to '')
-rw-r--r--arch/riscv/kernel/head.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/kernel/head.h b/arch/riscv/kernel/head.h
index 5393cca77790..726731ada534 100644
--- a/arch/riscv/kernel/head.h
+++ b/arch/riscv/kernel/head.h
@@ -16,7 +16,9 @@ asmlinkage void __init setup_vm(uintptr_t dtb_pa);
asmlinkage void __init __copy_data(void);
#endif
+#ifdef CONFIG_RISCV_BOOT_SPINWAIT
extern void *__cpu_spinwait_stack_pointer[];
extern void *__cpu_spinwait_task_pointer[];
+#endif
#endif /* __ASM_HEAD_H */