s390/fpu: get rid of MACHINE_HAS_VX
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 1 Dec 2023 14:42:19 +0000 (15:42 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 11 Dec 2023 13:33:07 +0000 (14:33 +0100)
commit18564756ab328dfdc84d09b8150f5e4d2bb96753
treeea68f85f88dccdc0e67481e04879d240db31f20f
parent68422c0069990e5fe2a7dc2c6c995a48c0bdec26
s390/fpu: get rid of MACHINE_HAS_VX

Get rid of MACHINE_HAS_VX and replace it with cpu_has_vx() which is a
short readable wrapper for "test_facility(129)".

Facility bit 129 is set if the vector facility is present. test_facility()
returns also true for all bits which are set in the architecture level set
of the cpu that the kernel is compiled for. This means that
test_facility(129) is a compile time constant which returns true for z13
and later, since the vector facility bit is part of the z13 kernel ALS.

In result the compiled code will have less runtime checks, and less code.

Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
19 files changed:
arch/s390/crypto/chacha-glue.c
arch/s390/include/asm/fpu/api.h
arch/s390/include/asm/fpu/internal.h
arch/s390/include/asm/setup.h
arch/s390/kernel/compat_signal.c
arch/s390/kernel/crash_dump.c
arch/s390/kernel/early.c
arch/s390/kernel/fpu.c
arch/s390/kernel/machine_kexec.c
arch/s390/kernel/nmi.c
arch/s390/kernel/perf_regs.c
arch/s390/kernel/processor.c
arch/s390/kernel/ptrace.c
arch/s390/kernel/signal.c
arch/s390/kernel/smp.c
arch/s390/kernel/traps.c
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c
lib/raid6/s390vx.uc