diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-03-13 14:00:37 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-04-18 05:40:34 -0400 |
commit | b7bb7d9b28f6278625fbe7892b8c7799bb12a26a (patch) | |
tree | ea35d81cba393ba78f5a9ab5347bd249cfc5f4e7 /arch/blackfin/include/asm/barrier.h | |
parent | 710adaa913169d7183cdf0de41c2a349101ff615 (diff) |
arch,blackfin: Convert smp_mb__*()
Blackfin's atomic primitives do not imply a full barrier as whitnessed
from its SMP smp_mb__{before,after}_clear_bit() implementations.
However since !SMP smp_mb() reduces to barrier() remove everything and
rely on the asm-generic/barrier.h implentation.
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-1widdkdsb3c1titq8jez6g3g@git.kernel.org
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Steven Miao <realmz6@gmail.com>
Cc: adi-buildroot-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/blackfin/include/asm/barrier.h')
-rw-r--r-- | arch/blackfin/include/asm/barrier.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/barrier.h b/arch/blackfin/include/asm/barrier.h index 19283a16ac08..420006877998 100644 --- a/arch/blackfin/include/asm/barrier.h +++ b/arch/blackfin/include/asm/barrier.h | |||
@@ -27,6 +27,9 @@ | |||
27 | 27 | ||
28 | #endif /* !CONFIG_SMP */ | 28 | #endif /* !CONFIG_SMP */ |
29 | 29 | ||
30 | #define smp_mb__before_atomic() barrier() | ||
31 | #define smp_mb__after_atomic() barrier() | ||
32 | |||
30 | #include <asm-generic/barrier.h> | 33 | #include <asm-generic/barrier.h> |
31 | 34 | ||
32 | #endif /* _BLACKFIN_BARRIER_H */ | 35 | #endif /* _BLACKFIN_BARRIER_H */ |