Commit 78f65709 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik
Browse files

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: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent b22446d0
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -106,12 +106,10 @@ _LPP_OFFSET = __LC_LPP
2:	la	%r11,STACK_FRAME_OVERHEAD(%r15)
	.endm

	# Use STORE CLOCK by default, switch to STORE CLOCK FAST if available.
	.macro STCK savearea
#ifdef CONFIG_HAVE_MARCH_Z9_109_FEATURES
	.insn	s,0xb27c0000,\savearea		# store clock fast
#else
	.insn	s,0xb2050000,\savearea		# store clock
#endif
	ALTERNATIVE ".insn	s,0xb2050000,\savearea", \
		    ".insn	s,0xb27c0000,\savearea", 25
	.endm

	/*