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

arch,parisc: Convert smp_mb__*()

parisc fully relies on asm-generic/barrier.h, therefore its smp_mb()
is barrier and the default implementation suffices.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/n/tip-mxs4aubiyesi79v8xx53093q@git.kernel.org
Cc: Helge Deller <deller@gmx.de>
Cc: James E.J. Bottomley <jejb@parisc-linux.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Cc: linux-parisc@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Peter Zijlstra and committed by
Ingo Molnar
e4a65e9d 0f5c6f9e

+2 -8
+1 -5
arch/parisc/include/asm/atomic.h
··· 7 7 8 8 #include <linux/types.h> 9 9 #include <asm/cmpxchg.h> 10 + #include <asm/barrier.h> 10 11 11 12 /* 12 13 * Atomic operations that C can't guarantee us. Useful for ··· 143 142 #define atomic_sub_and_test(i,v) (atomic_sub_return((i),(v)) == 0) 144 143 145 144 #define ATOMIC_INIT(i) { (i) } 146 - 147 - #define smp_mb__before_atomic_dec() smp_mb() 148 - #define smp_mb__after_atomic_dec() smp_mb() 149 - #define smp_mb__before_atomic_inc() smp_mb() 150 - #define smp_mb__after_atomic_inc() smp_mb() 151 145 152 146 #ifdef CONFIG_64BIT 153 147
+1 -3
arch/parisc/include/asm/bitops.h
··· 8 8 #include <linux/compiler.h> 9 9 #include <asm/types.h> /* for BITS_PER_LONG/SHIFT_PER_LONG */ 10 10 #include <asm/byteorder.h> 11 + #include <asm/barrier.h> 11 12 #include <linux/atomic.h> 12 13 13 14 /* ··· 19 18 20 19 #define CHOP_SHIFTCOUNT(x) (((unsigned long) (x)) & (BITS_PER_LONG - 1)) 21 20 22 - 23 - #define smp_mb__before_clear_bit() smp_mb() 24 - #define smp_mb__after_clear_bit() smp_mb() 25 21 26 22 /* See http://marc.theaimsgroup.com/?t=108826637900003 for discussion 27 23 * on use of volatile and __*_bit() (set/clear/change):