riscv: Add parameter for skipping access speed tests
authorAndrew Jones <ajones@ventanamicro.com>
Tue, 4 Mar 2025 12:00:22 +0000 (13:00 +0100)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Wed, 19 Mar 2025 14:23:30 +0000 (14:23 +0000)
commitaecb09e091dc143345a9e4b282d0444554445f4b
tree1a24b816923132232020a347d8284cb368efecc3
parent2744ec472de31141ad354907ff98843dd6040917
riscv: Add parameter for skipping access speed tests

Allow skipping scalar and vector unaligned access speed tests. This
is useful for testing alternative code paths and to skip the tests in
environments where they run too slowly. All CPUs must have the same
unaligned access speed.

The code movement is because we now need the scalar cpu hotplug
callback to always run, so we need to bring it and its supporting
functions out of CONFIG_RISCV_PROBE_UNALIGNED_ACCESS.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20250304120014.143628-17-ajones@ventanamicro.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/kernel/unaligned_access_speed.c