riscv: Add static key for misaligned accesses
authorCharlie Jenkins <charlie@rivosinc.com>
Mon, 8 Jan 2024 23:57:03 +0000 (15:57 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 18 Jan 2024 01:52:30 +0000 (17:52 -0800)
commit2ce5729fce8f62b5118f56110d16006c0e22c522
tree3b6676419637a7d136868d4d5f488d03c94f8e9c
parent1e7196fa5b0312a6a3e49e7c1300e145afcba96b
riscv: Add static key for misaligned accesses

Support static branches depending on the value of misaligned accesses.
This will be used by a later patch in the series. At any point in time,
this static branch will only be enabled if all online CPUs are
considered "fast".

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Reviewed-by: Evan Green <evan@rivosinc.com>
Link: https://lore.kernel.org/r/20240108-optimize_checksum-v15-2-1c50de5f2167@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/cpufeature.h
arch/riscv/kernel/cpufeature.c