]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/cpufeature: Convert MACHINE_HAS_IDTE to cpu_has_idte()
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 7 Feb 2025 14:48:55 +0000 (15:48 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Mar 2025 16:18:05 +0000 (17:18 +0100)
commit949b73c9902613bddb789d9375981afbffe596fc
treee96f5d7cf029f97be82bbc5683f59e5be4a768b7
parent3f5eede6dfdd2cf9f4c0156ccee20bd0e5d927aa
s390/cpufeature: Convert MACHINE_HAS_IDTE to cpu_has_idte()

Convert MACHINE_HAS_... to cpu_has_...() which uses test_facility() instead
of testing the machine_flags lowcore member if the feature is present.

test_facility() generates better code since it results in a static branch
without accessing memory. The branch is patched via alternatives by the
decompressor depending on the availability of the required facility.

Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/cpufeature.h
arch/s390/include/asm/setup.h
arch/s390/include/asm/tlbflush.h
arch/s390/kernel/early.c
arch/s390/mm/gmap.c
arch/s390/mm/pageattr.c
arch/s390/mm/pgtable.c