diff options
author | Samuel Holland <[email protected]> | 2023-11-21 15:47:26 -0800 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-01-04 15:03:07 -0800 |
commit | 62ff262227a45bf917fe198885ab7aa19be5a01f (patch) | |
tree | a438b41277a2f4a9948808e0bd50111d28283e70 /arch/riscv/include/asm/cpu_ops.h | |
parent | 79093f3ec39c90edf4bd1a532d922ee6163441ec (diff) |
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 <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'arch/riscv/include/asm/cpu_ops.h')
-rw-r--r-- | arch/riscv/include/asm/cpu_ops.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/include/asm/cpu_ops.h b/arch/riscv/include/asm/cpu_ops.h index 18af75e6873c..176b570ef982 100644 --- a/arch/riscv/include/asm/cpu_ops.h +++ b/arch/riscv/include/asm/cpu_ops.h @@ -29,7 +29,7 @@ struct cpu_operations { }; extern const struct cpu_operations cpu_ops_spinwait; -extern const struct cpu_operations *cpu_ops[NR_CPUS]; -void __init cpu_set_ops(int cpu); +extern const struct cpu_operations *cpu_ops; +void __init cpu_set_ops(void); #endif /* ifndef __ASM_CPU_OPS_H */ |