diff options
author | Palmer Dabbelt <palmer@rivosinc.com> | 2024-04-17 03:27:50 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-04-30 19:35:41 +0200 |
commit | 3f45244289398b6f29074fdb91dd164667bb0960 (patch) | |
tree | 85d8898f3363543c9546487ef5d6d0c5da21c1b6 /arch/riscv/include | |
parent | riscv: hwprobe: export Zihintpause ISA extension (diff) | |
parent | riscv: Fix text patching when IPI are used (diff) | |
download | linux-3f45244289398b6f29074fdb91dd164667bb0960.tar.xz linux-3f45244289398b6f29074fdb91dd164667bb0960.zip |
Merge patch series "riscv: fix patching with IPI"
Alexandre Ghiti <alexghiti@rivosinc.com> says:
patch 1 removes a useless memory barrier and patch 2 actually fixes the
issue with IPI in the patching code.
* b4-shazam-merge:
riscv: Fix text patching when IPI are used
riscv: Remove superfluous smp_mb()
Link: https://lore.kernel.org/r/20240229121056.203419-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r-- | arch/riscv/include/asm/patch.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/patch.h b/arch/riscv/include/asm/patch.h index e88b52d39eac..9f5d6e14c405 100644 --- a/arch/riscv/include/asm/patch.h +++ b/arch/riscv/include/asm/patch.h @@ -6,6 +6,7 @@ #ifndef _ASM_RISCV_PATCH_H #define _ASM_RISCV_PATCH_H +int patch_insn_write(void *addr, const void *insn, size_t len); int patch_text_nosync(void *addr, const void *insns, size_t len); int patch_text_set_nosync(void *addr, u8 c, size_t len); int patch_text(void *addr, u32 *insns, int ninsns); |