mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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>
This commit is contained in:
parent
c6f48b0bbe
commit
e5b8d7553f
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue