Commit e06ef372 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 1aae0560
...@@ -13,15 +13,12 @@ ...@@ -13,15 +13,12 @@
* to devices. * to devices.
*/ */
static inline void mb(void)
{
#ifdef CONFIG_HAVE_MARCH_Z196_FEATURES #ifdef CONFIG_HAVE_MARCH_Z196_FEATURES
/* Fast-BCR without checkpoint synchronization */ /* Fast-BCR without checkpoint synchronization */
asm volatile("bcr 14,0" : : : "memory"); #define mb() do { asm volatile("bcr 14,0" : : : "memory"); } while (0)
#else #else
asm volatile("bcr 15,0" : : : "memory"); #define mb() do { asm volatile("bcr 15,0" : : : "memory"); } while (0)
#endif #endif
}
#define rmb() mb() #define rmb() mb()
#define wmb() mb() #define wmb() mb()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment