]> Git Repo - linux.git/commitdiff
m68k: use asm-generic cmpxchg_local()
authorGreg Ungerer <[email protected]>
Mon, 15 Jun 2020 04:20:47 +0000 (14:20 +1000)
committerGreg Ungerer <[email protected]>
Mon, 27 Jul 2020 02:32:00 +0000 (12:32 +1000)
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.

Signed-off-by: Greg Ungerer <[email protected]>
arch/m68k/include/asm/cmpxchg.h

index 38e1d7acc44dc5b7da058989d329f305e55b2d66..3a3bdcfcd3754f40b8609a0b0a5349302bdcbe29 100644 (file)
@@ -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
This page took 0.055001 seconds and 4 git commands to generate.