Skip to content

Commit 0f5c6f9

Browse files
Peter Zijlstraingomolnar
authored andcommitted
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>
1 parent 9424cdf commit 0f5c6f9

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎arch/openrisc/include/asm/bitops.h‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,7 @@
2727

2828
#include <linux/irqflags.h>
2929
#include <linux/compiler.h>
30-
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
30+
#include <asm/barrier.h>
3831

3932
#include <asm/bitops/__ffs.h>
4033
#include <asm-generic/bitops/ffz.h>

0 commit comments

Comments
 (0)