linux-yocto/arch/riscv/kernel
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
..
compat_vdso kbuild: unify vdso_install rules 2024-06-12 11:12:32 +02:00
pi
probes riscv: Pass patch_text() the length in bytes 2025-05-09 09:44:03 +02:00
vdso riscv: vdso: Prevent the compiler from inserting calls to memset() 2024-11-08 16:28:25 +01:00
.gitignore
acpi.c RISC-V: ACPI: fix early_ioremap to early_memremap 2024-11-08 16:28:24 +01:00
alternative.c
asm-offsets.c riscv: Remove unused GENERATING_ASM_OFFSETS 2024-11-08 16:28:25 +01:00
cacheinfo.c riscv: cacheinfo: Use of_property_present() for non-boolean properties 2025-03-13 12:58:22 +01:00
cfi.c
compat_signal.c
compat_syscall_table.c
copy-unaligned.h
copy-unaligned.S
cpu_ops_sbi.c riscv: prevent pt_regs corruption for secondary idle threads 2024-06-12 11:13:03 +02:00
cpu_ops_spinwait.c riscv: prevent pt_regs corruption for secondary idle threads 2024-06-12 11:13:03 +02:00
cpu_ops.c
cpu-hotplug.c riscv: Use '%u' to format the output of 'cpu' 2024-11-08 16:28:25 +01:00
cpu.c riscv: cpufeature: Fix thead vector hwcap removal 2024-10-17 15:24:11 +02:00
cpufeature.c riscv: Fix enabling cbo.zero when running in M-mode 2025-03-13 12:58:38 +01:00
crash_core.c
crash_dump.c
crash_save_regs.S
efi-header.S riscv: efi: Set NX compat flag in PE/COFF header 2024-11-08 16:28:25 +01:00
efi.c riscv: Use accessors to page table entries instead of direct dereference 2024-09-12 11:11:40 +02:00
elf_kexec.c riscv/kexec_file: Fix relocation type R_RISCV_ADD16 and R_RISCV_SUB16 unknown 2024-10-17 15:24:18 +02:00
entry.S riscv: avoid Imbalance in RAS 2024-10-17 15:24:18 +02:00
fpu.S
ftrace.c riscv: Fix text patching when IPI are used 2025-01-17 13:36:26 +01:00
head.h
head.S riscv: set trap vector earlier 2024-09-12 11:11:37 +02:00
hibernate-asm.S
hibernate.c
image-vars.h
irq.c
jump_label.c
kexec_relocate.S
kgdb.c riscv: KGDB: Remove ".option norvc/.option rvc" for kgdb_compiled_break 2025-04-25 10:45:45 +02:00
machine_kexec_file.c
machine_kexec.c riscv: kexec: Avoid deadlock in kexec crash path 2024-07-11 12:49:13 +02:00
Makefile
mcount-dyn.S
mcount.S
module-sections.c
module.c
patch.c riscv: Pass patch_text() the length in bytes 2025-05-09 09:44:03 +02:00
perf_callchain.c riscv: Fix fp alignment bug in perf_callchain_user() 2024-10-04 16:29:34 +02:00
perf_regs.c
process.c
ptrace.c
reset.c
return_address.c
riscv_ksyms.c
sbi-ipi.c
sbi.c
setup.c riscv: Properly export reserved regions in /proc/iomem 2025-04-25 10:45:45 +02:00
signal.c riscv: signal: fix signal frame size 2025-03-07 16:45:48 +01:00
smp.c
smpboot.c RISC-V: Enable cbo.zero in usermode 2025-03-13 12:58:22 +01:00
soc.c
stacktrace.c riscv: stacktrace: fix usage of ftrace_graph_ret_addr() 2024-07-25 09:50:55 +02:00
suspend_entry.S
suspend.c
sys_riscv.c
syscall_table.c
time.c
traps_misaligned.c riscv: Remove duplicated GET_RM 2024-11-08 16:28:25 +01:00
traps.c riscv: Fix sleeping in invalid context in die() 2025-01-17 13:36:18 +01:00
vdso.c
vector.c RISC-V: Mark riscv_v_init() as __init 2025-02-08 09:52:33 +01:00
vmlinux-xip.lds.S
vmlinux.lds.S