diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-11-09 15:20:12 +0300 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-11-09 18:54:30 +0300 |
commit | baaf9be8d05c63c5cca9729ff05e69c6afed4fc5 (patch) | |
tree | 7faf9e218d7b864a97cfc567ff2973b25e42eaf2 | |
parent | 56c5c6834e330caca7584445f4dc103515eb7175 (diff) | |
download | linux-baaf9be8d05c63c5cca9729ff05e69c6afed4fc5.tar.xz |
s390: simplify transactional execution elf hwcap handling
Just use MACHINE_HAS_TE to decide if HWCAP_S390_TE needs
to be added to elf_hwcap.
Suggested-by: Dan HorĂ¡k <dan@danny.cz>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
-rw-r--r-- | arch/s390/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index b5baaef11f9b..090053cf279b 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -759,7 +759,7 @@ static int __init setup_hwcaps(void) /* * Transactional execution support HWCAP_S390_TE is bit 10. */ - if (test_facility(50) && test_facility(73)) + if (MACHINE_HAS_TE) elf_hwcap |= HWCAP_S390_TE; /* |