s390/spinlock: use cpu alternatives to enable niai instruction
authorVasily Gorbik <gor@linux.vnet.ibm.com>
Thu, 12 Oct 2017 11:01:47 +0000 (13:01 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 18 Oct 2017 12:11:33 +0000 (14:11 +0200)
commitf554be42fd0fd8dd14680c67f2db26b3e7de9670
tree68d1e054f9a40bbe29d3d5b3c2ef79437d6e71ee
parent686140a1a9c41d85a4212a1c26d671139b76404b
s390/spinlock: use cpu alternatives to enable niai instruction

Enable niai instruction in the spinlock code at run-time for machines
on which facility 49 is available (zEC12 and newer).

Signed-off-by: Vasily Gorbik <gor@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/spinlock.h
arch/s390/lib/spinlock.c