]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: Fix set up of vector cpu hotplug callback
authorAndrew Jones <ajones@ventanamicro.com>
Tue, 4 Mar 2025 12:00:21 +0000 (13:00 +0100)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Wed, 19 Mar 2025 14:23:30 +0000 (14:23 +0000)
commit2744ec472de31141ad354907ff98843dd6040917
tree4e7b1bbf2d4234ef13dcbcf3ac39d13cb8a005b4
parent05ee21f0fcb8ca29bf42bd6cbce109f2e49c167f
riscv: Fix set up of vector cpu hotplug callback

Whether or not we have RISCV_PROBE_VECTOR_UNALIGNED_ACCESS we need to
set up a cpu hotplug callback to check if we have vector at all,
since, when we don't have vector, we need to set
vector_misaligned_access to unsupported rather than leave it the
default of unknown.

Fixes: e7c9d66e313b ("RISC-V: Report vector unaligned access speed hwprobe")
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20250304120014.143628-16-ajones@ventanamicro.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/kernel/unaligned_access_speed.c