Thread (7 messages) 7 messages, 3 authors, 2024-02-29
STALE861d
Revisions (2)
  1. v1 current
  2. v3 [diff vs current]

[PATCH 1/2] riscv: Remove superfluous smp_mb()

From: Alexandre Ghiti <hidden>
Date: 2024-02-28 17:52:57
Also in: linux-riscv, lkml
Subsystem: risc-v architecture, the rest · Maintainers: Paul Walmsley, Palmer Dabbelt, Albert Ou, Linus Torvalds

This memory barrier is not needed and not documented so simply remove
it.

Suggested-by: Andrea Parri <redacted>
Signed-off-by: Alexandre Ghiti <redacted>
---
 arch/riscv/kernel/patch.c | 1 -
 1 file changed, 1 deletion(-)
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;
-- 
2.39.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help