Skip to content

Commit 29cee75

Browse files
Alexandre Ghitipalmer-dabbelt
authored andcommitted
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>
1 parent 6613476 commit 29cee75

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/riscv/kernel/patch.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ static int patch_text_cb(void *data)
239239
} else {
240240
while (atomic_read(&patch->cpu_count) <= num_online_cpus())
241241
cpu_relax();
242-
smp_mb();
243242
}
244243

245244
return ret;

0 commit comments

Comments
 (0)