diff options
author | Atish Patra <[email protected]> | 2022-01-20 01:09:15 -0800 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2022-01-20 09:27:08 -0800 |
commit | c78f94f35cf6486c4057317e8de3ddc4c62e12c7 (patch) | |
tree | da587266b5f6184ea6d71dad6b86588e5a904259 /arch/riscv/kernel/head.h | |
parent | 410bb20a698d4c95c63e7f2b6f6f7d8da43795f5 (diff) |
RISC-V: Use __cpu_up_stack/task_pointer only for spinwait method
The __cpu_up_stack/task_pointer array is only used for spinwait method
now. The per cpu array based lookup is also fragile for platforms with
discontiguous/sparse hartids. The spinwait method is only used for
M-mode Linux or older firmwares without SBI HSM extension. For general
Linux systems, ordered booting method is preferred anyways to support
cpu hotplug and kexec.
Make sure that __cpu_up_stack/task_pointer is only used for spinwait
method. Take this opportunity to rename it to
__cpu_spinwait_stack/task_pointer to emphasize the purpose as well.
Reviewed-by: Anup Patel <[email protected]>
Signed-off-by: Atish Patra <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'arch/riscv/kernel/head.h')
-rw-r--r-- | arch/riscv/kernel/head.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/kernel/head.h b/arch/riscv/kernel/head.h index aabbc3ac3e48..5393cca77790 100644 --- a/arch/riscv/kernel/head.h +++ b/arch/riscv/kernel/head.h @@ -16,7 +16,7 @@ asmlinkage void __init setup_vm(uintptr_t dtb_pa); asmlinkage void __init __copy_data(void); #endif -extern void *__cpu_up_stack_pointer[]; -extern void *__cpu_up_task_pointer[]; +extern void *__cpu_spinwait_stack_pointer[]; +extern void *__cpu_spinwait_task_pointer[]; #endif /* __ASM_HEAD_H */ |