Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356116
b: refs/heads/master
c: e06ef37
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Feb 14, 2013
1 parent ee73aac commit ad07ab3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1aae0560d160ee6ebef927a35e4f405306a079df
refs/heads/master: e06ef372839c0c33f5f91f892ae632cef38cd259
9 changes: 3 additions & 6 deletions trunk/arch/s390/include/asm/barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@
* to devices.
*/

static inline void mb(void)
{
#ifdef CONFIG_HAVE_MARCH_Z196_FEATURES
/* Fast-BCR without checkpoint synchronization */
asm volatile("bcr 14,0" : : : "memory");
/* Fast-BCR without checkpoint synchronization */
#define mb() do { asm volatile("bcr 14,0" : : : "memory"); } while (0)
#else
asm volatile("bcr 15,0" : : : "memory");
#define mb() do { asm volatile("bcr 15,0" : : : "memory"); } while (0)
#endif
}

#define rmb() mb()
#define wmb() mb()
Expand Down

0 comments on commit ad07ab3

Please sign in to comment.