riscv: Use the same CPU operations for all CPUs
authorSamuel Holland <samuel.holland@sifive.com>
Tue, 21 Nov 2023 23:47:26 +0000 (15:47 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 4 Jan 2024 23:03:07 +0000 (15:03 -0800)
commit62ff262227a45bf917fe198885ab7aa19be5a01f
treea438b41277a2f4a9948808e0bd50111d28283e70
parent79093f3ec39c90edf4bd1a532d922ee6163441ec
riscv: Use the same CPU operations for all CPUs

RISC-V provides no binding (ACPI or DT) to describe per-cpu start/stop
operations, so cpu_set_ops() will always detect the same operations for
every CPU. Replace the cpu_ops array with a single pointer to save space
and reduce boot time.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231121234736.3489608-4-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/cpu_ops.h
arch/riscv/kernel/cpu-hotplug.c
arch/riscv/kernel/cpu_ops.c
arch/riscv/kernel/smp.c
arch/riscv/kernel/smpboot.c