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

locking/cmpxchg, arch: Remove tas() definitions

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>

authored by

Davidlohr Bueso and committed by
Ingo Molnar
fbd35c0d cd0272fa

-7
-1
arch/blackfin/include/asm/cmpxchg.h
··· 128 128 #endif /* !CONFIG_SMP */ 129 129 130 130 #define xchg(ptr, x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))) 131 - #define tas(ptr) ((void)xchg((ptr), 1)) 132 131 133 132 #endif /* __ARCH_BLACKFIN_CMPXCHG__ */
-2
arch/c6x/include/asm/cmpxchg.h
··· 47 47 #define xchg(ptr, x) \ 48 48 ((__typeof__(*(ptr)))__xchg((unsigned int)(x), (void *) (ptr), \ 49 49 sizeof(*(ptr)))) 50 - #define tas(ptr) xchg((ptr), 1) 51 - 52 50 53 51 #include <asm-generic/cmpxchg-local.h> 54 52
-2
arch/frv/include/asm/cmpxchg.h
··· 69 69 70 70 #endif 71 71 72 - #define tas(ptr) (xchg((ptr), 1)) 73 - 74 72 /*****************************************************************************/ 75 73 /* 76 74 * compare and conditionally exchange value with memory
-2
arch/tile/include/asm/cmpxchg.h
··· 127 127 128 128 #endif 129 129 130 - #define tas(ptr) xchg((ptr), 1) 131 - 132 130 #endif /* __ASSEMBLY__ */ 133 131 134 132 #endif /* _ASM_TILE_CMPXCHG_H */