summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel
diff options
context:
space:
mode:
authorAlexandre Ghiti <alexghiti@rivosinc.com>2024-02-29 13:10:55 +0100
committerPalmer Dabbelt <palmer@rivosinc.com>2024-04-16 18:27:46 -0700
commit29cee75fb66e6f2845360e0598974253bf79181a (patch)
treeb5ac03c4e9cec7987f64c3db8f8daa837f33d035 /arch/riscv/kernel
parent6613476e225e090cc9aad49be7fa504e290dd33d (diff)
downloadlinux-stable-29cee75fb66e6f2845360e0598974253bf79181a.tar.gz
linux-stable-29cee75fb66e6f2845360e0598974253bf79181a.tar.bz2
linux-stable-29cee75fb66e6f2845360e0598974253bf79181a.zip
riscv: Remove superfluous smp_mb()
This memory barrier is not needed and not documented so simply remove it. Suggested-by: Andrea Parri <andrea@rivosinc.com> Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Reviewed-by: Andrea Parri <parri.andrea@gmail.com> Link: https://lore.kernel.org/r/20240229121056.203419-2-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r--arch/riscv/kernel/patch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/riscv/kernel/patch.c b/arch/riscv/kernel/patch.c
index 37e87fdcf6a0..0b5c16dfe3f4 100644
--- a/arch/riscv/kernel/patch.c
+++ b/arch/riscv/kernel/patch.c
@@ -239,7 +239,6 @@ static int patch_text_cb(void *data)
} else {
while (atomic_read(&patch->cpu_count) <= num_online_cpus())
cpu_relax();
- smp_mb();
}
return ret;