Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
e5b8d755 c6f48b0b

+5
+5
arch/s390/include/asm/barrier.h
··· 15 15 16 16 static inline void mb(void) 17 17 { 18 + #ifdef CONFIG_HAVE_MARCH_Z196_FEATURES 19 + /* Fast-BCR without checkpoint synchronization */ 20 + asm volatile("bcr 14,0" : : : "memory"); 21 + #else 18 22 asm volatile("bcr 15,0" : : : "memory"); 23 + #endif 19 24 } 20 25 21 26 #define rmb() mb()