riscv: lib: Introduce has_fast_unaligned_access()
authorCharlie Jenkins <charlie@rivosinc.com>
Fri, 8 Mar 2024 18:25:55 +0000 (10:25 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 13 Mar 2024 14:30:28 +0000 (07:30 -0700)
commit5a83e7313ee115d955d4b7834d33ff4d5a46ab37
tree9c03304f2fb6971f87ff1ca294855e2b30a9ce79
parent6613476e225e090cc9aad49be7fa504e290dd33d
riscv: lib: Introduce has_fast_unaligned_access()

Create has_fast_unaligned_access to avoid needing to explicitly check
the fast_misaligned_access_speed_key static key.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Reviewed-by: Evan Green <evan@rivosinc.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Tested-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20240308-disable_misaligned_probe_config-v9-1-a388770ba0ce@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/cpufeature.h
arch/riscv/kernel/cpufeature.c
arch/riscv/lib/csum.c