diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2025-02-07 15:48:50 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2025-03-04 17:18:04 +0100 |
commit | b49ee5b38651643d9e643fb4c7465f4046022254 (patch) | |
tree | b4f07b7e3cd13726a51a94be8009ad813a4ddf56 /scripts/lib/kdoc/kdoc_output.py | |
parent | 42805261fcea809e1e76243dfc5218f6f12c1614 (diff) |
s390/cpufeature: Convert MACHINE_HAS_NX to cpu_has_nx()
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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions