diff options
| author | Heiko Carstens <hca@linux.ibm.com> | 2025-02-07 15:49:01 +0100 |
|---|---|---|
| committer | Vasily Gorbik <gor@linux.ibm.com> | 2025-03-04 17:18:06 +0100 |
| commit | e82462fbb2cffbae0bf1b8bb15924cb18dba06a7 (patch) | |
| tree | d22a6d55fce87c9da46f1689e540836eeef76172 /arch/s390/boot | |
| parent | 17d3804808091e3942d2744dc8155a3a918d88c3 (diff) | |
s390/tx: Convert MACHINE_HAS_TE to machine_has_tx()
Use static branch(es) to implement and use machine_has_tx() instead of
a runtime check with MACHINE_HAS_TE.
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 'arch/s390/boot')
| -rw-r--r-- | arch/s390/boot/startup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/boot/startup.c b/arch/s390/boot/startup.c index 4ef2622f3d30..50ae83aaef16 100644 --- a/arch/s390/boot/startup.c +++ b/arch/s390/boot/startup.c @@ -84,6 +84,10 @@ static void detect_facilities(void) clock_comparator_max = -1UL >> 1; local_ctl_set_bit(0, CR0_CLOCK_COMPARATOR_SIGN_BIT); } + if (test_facility(50) && test_facility(73)) { + set_machine_feature(MFEATURE_TX); + local_ctl_set_bit(0, CR0_TRANSACTIONAL_EXECUTION_BIT); + } } static int cmma_test_essa(void) |
