Skip to content

Commit

Permalink
locking/cmpxchg, arch: Remove tas() definitions
Browse files Browse the repository at this point in the history
It seems that commit 5dc12dd ("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>
  • Loading branch information
Davidlohr Bueso authored and Ingo Molnar committed Dec 4, 2015
1 parent cd0272f commit fbd35c0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion arch/blackfin/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */
2 changes: 0 additions & 2 deletions arch/c6x/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 0 additions & 2 deletions arch/frv/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions arch/tile/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit fbd35c0

Please sign in to comment.