Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5b8d755 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

s390/barrier: make use of fast-bcr facility



If the kernel gets compiled for at least z196, make use of
the fast-BCR facility.

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent c6f48b0b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -15,7 +15,12 @@

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

#define rmb()				mb()