locking/cmpxchg, arch: Remove tas() definitions
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 27 Oct 2015 19:53:48 +0000 (12:53 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 4 Dec 2015 10:39:51 +0000 (11:39 +0100)
It seems that commit 5dc12ddee93 ("Remove tas()") missed some files.
Correct this and fully drop this macro, for which we should be using
cmpxchg() like calls.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: <linux-arch@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Cc: David Howells <dhowells@re hat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Miao <realmz6@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: dave@stgolabs.net
Link: http://lkml.kernel.org/r/1445975631-17047-2-git-send-email-dave@stgolabs.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/blackfin/include/asm/cmpxchg.h
arch/c6x/include/asm/cmpxchg.h
arch/frv/include/asm/cmpxchg.h
arch/tile/include/asm/cmpxchg.h

index c05868cc61c1aacc290ecfacfebb048cf032bc6f..253928854299f2c5c1f9c18e269c78869f4c626e 100644 (file)
@@ -128,6 +128,5 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr,
 #endif /* !CONFIG_SMP */
 
 #define xchg(ptr, x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
-#define tas(ptr) ((void)xchg((ptr), 1))
 
 #endif /* __ARCH_BLACKFIN_CMPXCHG__ */
index b27c8cefb8c3e92fb6a6e9b3055a6394bfe22f79..93d0a5a047a282b67ea2d62f984ce2707db46b13 100644 (file)
@@ -47,8 +47,6 @@ static inline unsigned int __xchg(unsigned int x, volatile void *ptr, int size)
 #define xchg(ptr, x) \
        ((__typeof__(*(ptr)))__xchg((unsigned int)(x), (void *) (ptr), \
                                    sizeof(*(ptr))))
-#define tas(ptr)    xchg((ptr), 1)
-
 
 #include <asm-generic/cmpxchg-local.h>
 
index 5b04dd0aecab8871d815eb9a59b1a6c35f2a60f6..a899765102ea47ac47c0c64f74df12c73d6b672a 100644 (file)
@@ -69,8 +69,6 @@ extern uint32_t __xchg_32(uint32_t i, volatile void *v);
 
 #endif
 
-#define tas(ptr) (xchg((ptr), 1))
-
 /*****************************************************************************/
 /*
  * compare and conditionally exchange value with memory
index 0ccda3c425be0d3b19a27c13b68ad6b6eaa37525..25d5899497be193bdbaba16a46107e7030de7fe8 100644 (file)
@@ -127,8 +127,6 @@ long long _atomic64_cmpxchg(long long *v, long long o, long long n);
 
 #endif
 
-#define tas(ptr) xchg((ptr), 1)
-
 #endif /* __ASSEMBLY__ */
 
 #endif /* _ASM_TILE_CMPXCHG_H */