diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-03-13 14:00:36 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-04-18 08:20:40 -0400 |
commit | 0f5c6f9e18e14b4ebd83dd08e81ca8143d43de28 (patch) | |
tree | 5c9b1972b67ceaedcebacf8ebc5303ba3930a7ea /arch/openrisc | |
parent | 9424cdf0fc7f768f20daef77980da9617a76679b (diff) |
arch,openrisc: Convert smp_mb__*()
Openrisc fully relies on asm-generic/barrier.h and therefore its
smp_mb() is barrier().
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-sxgxgqag9tond4kji07d22oh@git.kernel.org
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Cc: linux@lists.openrisc.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/include/asm/bitops.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/openrisc/include/asm/bitops.h b/arch/openrisc/include/asm/bitops.h index 2c64f2228dc7..3003cdad561b 100644 --- a/arch/openrisc/include/asm/bitops.h +++ b/arch/openrisc/include/asm/bitops.h | |||
@@ -27,14 +27,7 @@ | |||
27 | 27 | ||
28 | #include <linux/irqflags.h> | 28 | #include <linux/irqflags.h> |
29 | #include <linux/compiler.h> | 29 | #include <linux/compiler.h> |
30 | 30 | #include <asm/barrier.h> | |
31 | /* | ||
32 | * clear_bit may not imply a memory barrier | ||
33 | */ | ||
34 | #ifndef smp_mb__before_clear_bit | ||
35 | #define smp_mb__before_clear_bit() smp_mb() | ||
36 | #define smp_mb__after_clear_bit() smp_mb() | ||
37 | #endif | ||
38 | 31 | ||
39 | #include <asm/bitops/__ffs.h> | 32 | #include <asm/bitops/__ffs.h> |
40 | #include <asm-generic/bitops/ffz.h> | 33 | #include <asm-generic/bitops/ffz.h> |