arch: Remove __ARCH_HAVE_CMPXCHG
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 May 2015 08:54:25 +0000 (10:54 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 13 May 2015 08:55:42 +0000 (10:55 +0200)
We removed the only user of this define in the rtmutex code. Get rid
of it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
17 files changed:
arch/alpha/include/asm/cmpxchg.h
arch/avr32/include/asm/cmpxchg.h
arch/hexagon/include/asm/cmpxchg.h
arch/ia64/include/uapi/asm/cmpxchg.h
arch/m32r/include/asm/cmpxchg.h
arch/m68k/include/asm/cmpxchg.h
arch/metag/include/asm/cmpxchg.h
arch/mips/include/asm/cmpxchg.h
arch/parisc/include/asm/cmpxchg.h
arch/powerpc/include/asm/cmpxchg.h
arch/s390/include/asm/cmpxchg.h
arch/score/include/asm/cmpxchg.h
arch/sh/include/asm/cmpxchg.h
arch/sparc/include/asm/cmpxchg_32.h
arch/sparc/include/asm/cmpxchg_64.h
arch/tile/include/asm/atomic_64.h
arch/x86/include/asm/cmpxchg.h

index 429e8cd0d78e5a8f7aaeafacc3f36fae0c6a49c4..e5117766529e87ff99170fd4a53fde8d89bba4ff 100644 (file)
@@ -66,6 +66,4 @@
 #undef __ASM__MB
 #undef ____cmpxchg
 
-#define __HAVE_ARCH_CMPXCHG 1
-
 #endif /* _ALPHA_CMPXCHG_H */
index 962a6aeab787827462312ddf92627c2f8e7083f1..366bbeaeb405d67daa35adac5ff22a4ecfc7e125 100644 (file)
@@ -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)
 {
index 9e7802911a57f22b01d9f6852d3c11b2f34c1869..a6e34e2acbbaf6cc07f377db35faa7c744ba23e3 100644 (file)
@@ -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)                                 \
 ({                                                             \
index f35109b1d9076ccd996f1308dbffbdf788cd7475..a0e3620f8f133f7ea798ae9458abf10cc168f3c3 100644 (file)
@@ -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().
index de651db20b43938ca7289404dfa1eb4b7940e0c8..14bf9b739dd2c8eb643a805263dc88741fd3b1de 100644 (file)
@@ -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)
 {
index bc755bc620ad0985d6b2a08e57561354a67a301c..83b1df80f0ac0e69c9cf0662981a24358f29a166 100644 (file)
@@ -90,7 +90,6 @@ extern unsigned long __invalid_cmpxchg_size(volatile void *,
  * indicated by comparing RETURN with OLD.
  */
 #ifdef CONFIG_RMW_INSNS
-#define __HAVE_ARCH_CMPXCHG    1
 
 static inline unsigned long __cmpxchg(volatile void *p, unsigned long old,
                                      unsigned long new, int size)
index b1bc1be8540f581ab570963f099116507ea751db..be29e3e44321a1aa2d3adcf069522bd5152cf4ff 100644 (file)
@@ -51,8 +51,6 @@ static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
        return old;
 }
 
-#define __HAVE_ARCH_CMPXCHG 1
-
 #define cmpxchg(ptr, o, n)                                             \
        ({                                                              \
                __typeof__(*(ptr)) _o_ = (o);                           \
index 412f945f1f5ec26e78ab228aa2ee5b36cc2362fe..b71ab4a5fd508ea0ee59d9a27b9d15eee0d7180b 100644 (file)
@@ -138,8 +138,6 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz
                __xchg((unsigned long)(x), (ptr), sizeof(*(ptr))));     \
 })
 
-#define __HAVE_ARCH_CMPXCHG 1
-
 #define __cmpxchg_asm(ld, st, m, old, new)                             \
 ({                                                                     \
        __typeof(*(m)) __ret;                                           \
index dbd13354ec414b70a9abb814f62fc94035ccdf08..0a90b965cccbefe172be5dde879b5035b4589685 100644 (file)
@@ -46,8 +46,6 @@ __xchg(unsigned long x, __volatile__ void *ptr, int size)
 #define xchg(ptr, x) \
        ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
 
-#define __HAVE_ARCH_CMPXCHG    1
-
 /* bug catcher for when unsupported size is used - won't link */
 extern void __cmpxchg_called_with_bad_pointer(void);
 
index d463c68fe7f05fa798a151ea179a5f88a842ddee..ad6263cffb0fd0b3e09b192748f57f9049ce3cae 100644 (file)
@@ -144,7 +144,6 @@ __xchg_local(volatile void *ptr, unsigned long x, unsigned int size)
  * Compare and exchange - if *p == old, set it to new,
  * and return the old value of *p.
  */
-#define __HAVE_ARCH_CMPXCHG    1
 
 static __always_inline unsigned long
 __cmpxchg_u32(volatile unsigned int *p, unsigned long old, unsigned long new)
index 4eadec466b8ca3ecc5ba29881856fef9f85d79f3..411464f4c97a57fd49d87debc7ef041767342699 100644 (file)
@@ -32,8 +32,6 @@
        __old;                                                          \
 })
 
-#define __HAVE_ARCH_CMPXCHG
-
 #define __cmpxchg_double_op(p1, p2, o1, o2, n1, n2, insn)              \
 ({                                                                     \
        register __typeof__(*(p1)) __old1 asm("2") = (o1);              \
index f384839c3ee53e2608209217372423025e21e911..cc3f6420b71c1d6438067761c3a905f6033dc36a 100644 (file)
@@ -42,8 +42,6 @@ static inline unsigned long __cmpxchg(volatile unsigned long *m,
                                        (unsigned long)(o),     \
                                        (unsigned long)(n)))
 
-#define __HAVE_ARCH_CMPXCHG    1
-
 #include <asm-generic/cmpxchg-local.h>
 
 #endif /* _ASM_SCORE_CMPXCHG_H */
index f6bd1406b897fc927510724d8abd99e807b85ad8..85c97b188d71647683df8bebc6fd7fbbb3d55442 100644 (file)
@@ -46,8 +46,6 @@ extern void __xchg_called_with_bad_pointer(void);
  * 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)
 {
index d38b52dca216273a147328cc2d0288c20c2eeba6..83ffb83c5397f3e4bede59570856a11c41d9fc0e 100644 (file)
@@ -34,7 +34,6 @@ static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, int
  *
  * Cribbed from <asm-parisc/atomic.h>
  */
-#define __HAVE_ARCH_CMPXCHG    1
 
 /* bug catcher for when unsupported size is used - won't link */
 void __cmpxchg_called_with_bad_pointer(void);
index 0e1ed6cfbf68faa50792369faa69b4f917db1fd1..faa2f61058c271abf9ce799a02c9a55678464533 100644 (file)
@@ -65,8 +65,6 @@ static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr,
 
 #include <asm-generic/cmpxchg-local.h>
 
-#define __HAVE_ARCH_CMPXCHG 1
-
 static inline unsigned long
 __cmpxchg_u32(volatile int *m, int old, int new)
 {
index 7b11c5fadd4220f5e8694b6e2a2f906ccf4a50d3..0496970cef8296237edcf1f4f688dffa8af5ecfc 100644 (file)
@@ -105,9 +105,6 @@ static inline long atomic64_add_unless(atomic64_t *v, long a, long u)
 
 #define atomic64_inc_not_zero(v)       atomic64_add_unless((v), 1, 0)
 
-/* Define this to indicate that cmpxchg is an efficient operation. */
-#define __HAVE_ARCH_CMPXCHG
-
 #endif /* !__ASSEMBLY__ */
 
 #endif /* _ASM_TILE_ATOMIC_64_H */
index 99c105d78b7e123eec41d9bb5b2c308e5205d514..ad19841eddfe142fec6b2b27dc329059d8fb7296 100644 (file)
@@ -4,8 +4,6 @@
 #include <linux/compiler.h>
 #include <asm/alternative.h> /* Provides LOCK_PREFIX */
 
-#define __HAVE_ARCH_CMPXCHG 1
-
 /*
  * Non-existant functions to indicate usage errors at link time
  * (or compile-time if the compiler implements __compiletime_error().