atomic: Collapse all atomic_{set,clear}_mask definitions
authorPeter Zijlstra <peterz@infradead.org>
Thu, 23 Apr 2015 23:12:32 +0000 (01:12 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 27 Jul 2015 12:06:24 +0000 (14:06 +0200)
commitde9e432cb5de1bf2952919dc0b22e4bec0ed8d53
treef67d751e7d52f45279950f2a7594d7a2ff5a0bbd
parente6942b7de2dfe44ebde9bae57dadece5abca9de8
atomic: Collapse all atomic_{set,clear}_mask definitions

Move the now generic definitions of atomic_{set,clear}_mask() into
linux/atomic.h to avoid endless and pointless repetition.

Also, provide an atomic_andnot() wrapper for those few archs that can
implement that.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
16 files changed:
arch/arc/include/asm/atomic.h
arch/blackfin/include/asm/atomic.h
arch/frv/include/asm/atomic.h
arch/h8300/include/asm/atomic.h
arch/m32r/include/asm/atomic.h
arch/m68k/include/asm/atomic.h
arch/metag/include/asm/atomic_lnkget.h
arch/metag/include/asm/atomic_lock1.h
arch/mn10300/include/asm/atomic.h
arch/powerpc/kernel/misc_32.S
arch/s390/include/asm/atomic.h
arch/sh/include/asm/atomic.h
arch/x86/include/asm/atomic.h
arch/xtensa/include/asm/atomic.h
include/asm-generic/atomic.h
include/linux/atomic.h