Skip to contentSkip to conversation

sh: fix smp_store_mb for !SMP

PATCH New Michael S. Tsirkin 1 participant 1 message Jan 21, 2016

Subsystems (3)
lore
Share & tools
lore

Michael S. Tsirkin

author maintainer
#0 lore raw

PATCH 1/1 sh: fix smp_store_mb for !SMP

sh variant of smp_store_mb() calls xchg() on !SMP which is stronger than implied by both the name and the documentation.

commit 90a3ccb0be538a914e6a5c51ae919762261563ad ("sh: define __smp_xxx, fix smp_store_mb for !SMP") was supposed to fix it but
left the bug in place.

Drop smp_store_mb, so that code in asm-generic/barrier.h will define it correctly depending on CONFIG_SMP.

---

I put this in my tree as that's where the original commit came through, but if anyone else prefers to merge it, pls let me know.

 arch/sh/include/asm/barrier.h | 1 -
 1 file changed, 1 deletion(-)
arch/sh/include/asm/barrier.h +0 -1
index f887c64..8a84e05 100644
@@ -33,7 +33,6 @@
 #endif
 
 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
-#define smp_store_mb(var, value) __smp_store_mb(var, value)
 
 #include <asm-generic/barrier.h>
 
Signature · 1 line
MST