linux-yocto/arch/riscv/net
Samuel Holland b9ded1fb29 riscv: Pass patch_text() the length in bytes
commit 51781ce8f4 upstream.

patch_text_nosync() already handles an arbitrary length of code, so this
removes a superfluous loop and reduces the number of icache flushes.

Reviewed-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240327160520.791322-6-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
[apply to v6.6]
Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-05-09 09:44:03 +02:00
..
bpf_jit_comp32.c bpf: Change value of MAX_TAIL_CALL_CNT from 32 to 33 2021-11-16 14:03:15 +01:00
bpf_jit_comp64.c riscv: Pass patch_text() the length in bytes 2025-05-09 09:44:03 +02:00
bpf_jit_core.c bpf, riscv: use prog pack allocator in the BPF JIT 2023-09-06 06:26:07 -07:00
bpf_jit.h bpf, riscv: use prog pack allocator in the BPF JIT 2023-09-06 06:26:07 -07:00
Makefile riscv, bpf: Add RV32G eBPF JIT 2020-03-05 16:13:47 +01:00