s390/entry: use cpu alternative for stck/stckf
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 2 Feb 2021 12:46:47 +0000 (13:46 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 9 Feb 2021 14:57:05 +0000 (15:57 +0100)
commit78f6570946228d0e1dac5f42f398e3e07924b945
treec43c16fa7dbdd8eee905283224ea88328ae51f12
parentb22446d00af972ef624958a09dcbe85974b701fd
s390/entry: use cpu alternative for stck/stckf

Use a cpu alternative to switch between stck and stckf instead of
making it compile time dependent. This will also make kernels compiled
for old machines, but running on newer machines, use stckf.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/entry.S