s390/fpu: use lfpc instead of sfpc instruction
authorHeiko Carstens <hca@linux.ibm.com>
Sat, 3 Feb 2024 10:45:04 +0000 (11:45 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 16 Feb 2024 13:30:14 +0000 (14:30 +0100)
commit13a8a519cacf04e970907687dcb1e85c03073ba8
treea327df1545add441848db10677c063e665a00ced
parent045bad0800cec6098c30148e2873e20db742c750
s390/fpu: use lfpc instead of sfpc instruction

The only user of sfpc_safe() needs to read the new fpc register value
from memory before it is set with sfpc.

Avoid this indirection and use lfpc, which reads the new value from
memory. Also add the "fpu_" prefix to have a common name space for fpu
related inline assemblies, and provide memory access instrumentation.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/fpu-insn.h
arch/s390/kernel/fpu.c