aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-01-30 07:56:14 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-02-14 09:55:11 -0500
commite06ef372839c0c33f5f91f892ae632cef38cd259 (patch)
tree6389af031509ec16bdd1588c099cddb3afbddf8f
parent1aae0560d160ee6ebef927a35e4f405306a079df (diff)
s390/barrier: convert mb() to define again
Some of the now available common code drivers only compile if mb() is a define. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/include/asm/barrier.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/s390/include/asm/barrier.h b/arch/s390/include/asm/barrier.h
index 10a508802940..16760eeb79b0 100644
--- a/arch/s390/include/asm/barrier.h
+++ b/arch/s390/include/asm/barrier.h
@@ -13,15 +13,12 @@
13 * to devices. 13 * to devices.
14 */ 14 */
15 15
16static inline void mb(void)
17{
18#ifdef CONFIG_HAVE_MARCH_Z196_FEATURES 16#ifdef CONFIG_HAVE_MARCH_Z196_FEATURES
19 /* Fast-BCR without checkpoint synchronization */ 17/* Fast-BCR without checkpoint synchronization */
20 asm volatile("bcr 14,0" : : : "memory"); 18#define mb() do { asm volatile("bcr 14,0" : : : "memory"); } while (0)
21#else 19#else
22 asm volatile("bcr 15,0" : : : "memory"); 20#define mb() do { asm volatile("bcr 15,0" : : : "memory"); } while (0)
23#endif 21#endif
24}
25 22
26#define rmb() mb() 23#define rmb() mb()
27#define wmb() mb() 24#define wmb() mb()