Skip to content

Commit f944814

Browse files
author
Greg Ungerer
committed
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 <[email protected]>
1 parent 58f80fa commit f944814

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

arch/m68k/include/asm/cmpxchg.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,6 @@ static inline unsigned long __cmpxchg(volatile void *p, unsigned long old,
129129

130130
#else
131131

132-
/*
133-
* cmpxchg_local and cmpxchg64_local are atomic wrt current CPU. Always make
134-
* them available.
135-
*/
136-
#define cmpxchg_local(ptr, o, n) \
137-
((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
138-
(unsigned long)(n), sizeof(*(ptr))))
139-
140132
#include <asm-generic/cmpxchg.h>
141133

142134
#endif

0 commit comments

Comments
 (0)