]> git.ipfire.org Git - thirdparty/linux.git/commit
RISC-V: separate Zbb optimisations requiring and not requiring toolchain support
authorConor Dooley <conor.dooley@microchip.com>
Thu, 24 Oct 2024 10:19:41 +0000 (11:19 +0100)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 18 Mar 2025 08:53:02 +0000 (08:53 +0000)
commit9343aaba1f256ff42730db5a61efc32a86149776
tree23b6ca3dc22dce9584abcce54cf0850f34d8ba41
parent6216182fb776ae546c5566f21976d116c8650cee
RISC-V: separate Zbb optimisations requiring and not requiring toolchain support

It seems a bit ridiculous to require toolchain support for BPF to
assemble Zbb instructions, so move the dependency on toolchain support
for Zbb optimisations out of the Kconfig option and to the callsites.

Zbb support has always depended on alternatives, so while adjusting the
config options guarding optimisations, remove any checks for
whether or not alternatives are enabled.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20241024-chump-freebase-d26b6d81af33@spud
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/include/asm/arch_hweight.h
arch/riscv/include/asm/bitops.h
arch/riscv/include/asm/checksum.h
arch/riscv/lib/csum.c
arch/riscv/lib/strcmp.S
arch/riscv/lib/strlen.S
arch/riscv/lib/strncmp.S