summaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@linux-m68k.org>2020-06-15 06:20:47 +0200
committerGreg Ungerer <gerg@linux-m68k.org>2020-07-27 04:32:00 +0200
commitf944814eea028be6cc489d3080ed2901525ded1d (patch)
tree84bc0b306d3309ef7784357761d6cd9131736142 /arch/m68k
parentm68k: mcfmmu: remove stale part of comment about steal_context (diff)
downloadlinux-f944814eea028be6cc489d3080ed2901525ded1d.tar.xz
linux-f944814eea028be6cc489d3080ed2901525ded1d.zip
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. Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/include/asm/cmpxchg.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/m68k/include/asm/cmpxchg.h b/arch/m68k/include/asm/cmpxchg.h
index 38e1d7acc44d..3a3bdcfcd375 100644
--- a/arch/m68k/include/asm/cmpxchg.h
+++ b/arch/m68k/include/asm/cmpxchg.h
@@ -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