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 <[email protected]> Signed-off-by: Alexandre Ghiti <[email protected]> Reviewed-by: Andrea Parri <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 6613476 commit 29cee75

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)