Commit a22e5f57 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

arch: Remove __ARCH_HAVE_CMPXCHG



We removed the only user of this define in the rtmutex code. Get rid
of it.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
parent cede8841
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -66,6 +66,4 @@
#undef __ASM__MB
#undef ____cmpxchg

#define __HAVE_ARCH_CMPXCHG 1

#endif /* _ALPHA_CMPXCHG_H */
+0 −2
Original line number Diff line number Diff line
@@ -70,8 +70,6 @@ extern unsigned long __cmpxchg_u64_unsupported_on_32bit_kernels(
   if something tries to do an invalid cmpxchg().  */
extern void __cmpxchg_called_with_bad_pointer(void);

#define __HAVE_ARCH_CMPXCHG 1

static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
				      unsigned long new, int size)
{
+0 −1
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr,
 *  looks just like atomic_cmpxchg on our arch currently with a bunch of
 *  variable casting.
 */
#define __HAVE_ARCH_CMPXCHG 1

#define cmpxchg(ptr, old, new)					\
({								\
+0 −2
Original line number Diff line number Diff line
@@ -61,8 +61,6 @@ extern void ia64_xchg_called_with_bad_pointer(void);
 * indicated by comparing RETURN with OLD.
 */

#define __HAVE_ARCH_CMPXCHG 1

/*
 * This function doesn't exist, so you'll get a linker error
 * if something tries to do an invalid cmpxchg().
+0 −2
Original line number Diff line number Diff line
@@ -107,8 +107,6 @@ __xchg_local(unsigned long x, volatile void *ptr, int size)
	((__typeof__(*(ptr)))__xchg_local((unsigned long)(x), (ptr),	\
			sizeof(*(ptr))))

#define __HAVE_ARCH_CMPXCHG	1

static inline unsigned long
__cmpxchg_u32(volatile unsigned int *p, unsigned int old, unsigned int new)
{
Loading