Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch: Remove __ARCH_HAVE_CMPXCHG

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>

-31
-2
arch/alpha/include/asm/cmpxchg.h
··· 66 66 #undef __ASM__MB 67 67 #undef ____cmpxchg 68 68 69 - #define __HAVE_ARCH_CMPXCHG 1 70 - 71 69 #endif /* _ALPHA_CMPXCHG_H */
-2
arch/avr32/include/asm/cmpxchg.h
··· 70 70 if something tries to do an invalid cmpxchg(). */ 71 71 extern void __cmpxchg_called_with_bad_pointer(void); 72 72 73 - #define __HAVE_ARCH_CMPXCHG 1 74 - 75 73 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, 76 74 unsigned long new, int size) 77 75 {
-1
arch/hexagon/include/asm/cmpxchg.h
··· 64 64 * looks just like atomic_cmpxchg on our arch currently with a bunch of 65 65 * variable casting. 66 66 */ 67 - #define __HAVE_ARCH_CMPXCHG 1 68 67 69 68 #define cmpxchg(ptr, old, new) \ 70 69 ({ \
-2
arch/ia64/include/uapi/asm/cmpxchg.h
··· 61 61 * indicated by comparing RETURN with OLD. 62 62 */ 63 63 64 - #define __HAVE_ARCH_CMPXCHG 1 65 - 66 64 /* 67 65 * This function doesn't exist, so you'll get a linker error 68 66 * if something tries to do an invalid cmpxchg().
-2
arch/m32r/include/asm/cmpxchg.h
··· 107 107 ((__typeof__(*(ptr)))__xchg_local((unsigned long)(x), (ptr), \ 108 108 sizeof(*(ptr)))) 109 109 110 - #define __HAVE_ARCH_CMPXCHG 1 111 - 112 110 static inline unsigned long 113 111 __cmpxchg_u32(volatile unsigned int *p, unsigned int old, unsigned int new) 114 112 {
-1
arch/m68k/include/asm/cmpxchg.h
··· 90 90 * indicated by comparing RETURN with OLD. 91 91 */ 92 92 #ifdef CONFIG_RMW_INSNS 93 - #define __HAVE_ARCH_CMPXCHG 1 94 93 95 94 static inline unsigned long __cmpxchg(volatile void *p, unsigned long old, 96 95 unsigned long new, int size)
-2
arch/metag/include/asm/cmpxchg.h
··· 51 51 return old; 52 52 } 53 53 54 - #define __HAVE_ARCH_CMPXCHG 1 55 - 56 54 #define cmpxchg(ptr, o, n) \ 57 55 ({ \ 58 56 __typeof__(*(ptr)) _o_ = (o); \
-2
arch/mips/include/asm/cmpxchg.h
··· 138 138 __xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))); \ 139 139 }) 140 140 141 - #define __HAVE_ARCH_CMPXCHG 1 142 - 143 141 #define __cmpxchg_asm(ld, st, m, old, new) \ 144 142 ({ \ 145 143 __typeof(*(m)) __ret; \
-2
arch/parisc/include/asm/cmpxchg.h
··· 46 46 #define xchg(ptr, x) \ 47 47 ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))) 48 48 49 - #define __HAVE_ARCH_CMPXCHG 1 50 - 51 49 /* bug catcher for when unsupported size is used - won't link */ 52 50 extern void __cmpxchg_called_with_bad_pointer(void); 53 51
-1
arch/powerpc/include/asm/cmpxchg.h
··· 144 144 * Compare and exchange - if *p == old, set it to new, 145 145 * and return the old value of *p. 146 146 */ 147 - #define __HAVE_ARCH_CMPXCHG 1 148 147 149 148 static __always_inline unsigned long 150 149 __cmpxchg_u32(volatile unsigned int *p, unsigned long old, unsigned long new)
-2
arch/s390/include/asm/cmpxchg.h
··· 32 32 __old; \ 33 33 }) 34 34 35 - #define __HAVE_ARCH_CMPXCHG 36 - 37 35 #define __cmpxchg_double_op(p1, p2, o1, o2, n1, n2, insn) \ 38 36 ({ \ 39 37 register __typeof__(*(p1)) __old1 asm("2") = (o1); \
-2
arch/score/include/asm/cmpxchg.h
··· 42 42 (unsigned long)(o), \ 43 43 (unsigned long)(n))) 44 44 45 - #define __HAVE_ARCH_CMPXCHG 1 46 - 47 45 #include <asm-generic/cmpxchg-local.h> 48 46 49 47 #endif /* _ASM_SCORE_CMPXCHG_H */
-2
arch/sh/include/asm/cmpxchg.h
··· 46 46 * if something tries to do an invalid cmpxchg(). */ 47 47 extern void __cmpxchg_called_with_bad_pointer(void); 48 48 49 - #define __HAVE_ARCH_CMPXCHG 1 50 - 51 49 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, 52 50 unsigned long new, int size) 53 51 {
-1
arch/sparc/include/asm/cmpxchg_32.h
··· 34 34 * 35 35 * Cribbed from <asm-parisc/atomic.h> 36 36 */ 37 - #define __HAVE_ARCH_CMPXCHG 1 38 37 39 38 /* bug catcher for when unsupported size is used - won't link */ 40 39 void __cmpxchg_called_with_bad_pointer(void);
-2
arch/sparc/include/asm/cmpxchg_64.h
··· 65 65 66 66 #include <asm-generic/cmpxchg-local.h> 67 67 68 - #define __HAVE_ARCH_CMPXCHG 1 69 - 70 68 static inline unsigned long 71 69 __cmpxchg_u32(volatile int *m, int old, int new) 72 70 {
-3
arch/tile/include/asm/atomic_64.h
··· 105 105 106 106 #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0) 107 107 108 - /* Define this to indicate that cmpxchg is an efficient operation. */ 109 - #define __HAVE_ARCH_CMPXCHG 110 - 111 108 #endif /* !__ASSEMBLY__ */ 112 109 113 110 #endif /* _ASM_TILE_ATOMIC_64_H */
-2
arch/x86/include/asm/cmpxchg.h
··· 4 4 #include <linux/compiler.h> 5 5 #include <asm/alternative.h> /* Provides LOCK_PREFIX */ 6 6 7 - #define __HAVE_ARCH_CMPXCHG 1 8 - 9 7 /* 10 8 * Non-existant functions to indicate usage errors at link time 11 9 * (or compile-time if the compiler implements __compiletime_error().