Skip to contentSkip to conversation

m68k: use asm-generic cmpxchg_local()

PATCH In review Greg Ungerer 1 participant 1 message Jun 15, 2020 m68k architecture

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 m68k: use asm-generic cmpxchg_local()

Use the asm-generic version of the cmpxchg_local() macro. Although not all target types use asm-generic/cmpxchg.h, for those that do the local cmpxchg_local() is the same as the asm-generic/cmpxchg.h one. So no need to define the local one.

---
 arch/m68k/include/asm/cmpxchg.h | 8 --------
 1 file changed, 8 deletions(-)
arch/m68k/include/asm/cmpxchg.h +0 -8
index 38e1d7acc44d..3a3bdcfcd375 100644
@@ -129,14 +129,6 @@ static inline unsigned long __cmpxchg(volatile void *p, unsigned long old,
 
 #else
 
-/*
- * cmpxchg_local and cmpxchg64_local are atomic wrt current CPU. Always make
- * them available.
- */
-#define cmpxchg_local(ptr, o, n)				  	       \
-	((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
-			(unsigned long)(n), sizeof(*(ptr))))
-
 #include <asm-generic/cmpxchg.h>
 
 #endif
Signature · 1 line
2.25.1