From: Heiko Carstens Date: Thu, 9 Nov 2017 12:20:12 +0000 (+0100) Subject: s390: simplify transactional execution elf hwcap handling X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=baaf9be8d05c63c5cca9729ff05e69c6afed4fc5;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Christian Borntraeger Reviewed-by: Hendrik Brueckner Signed-off-by: Heiko Carstens --- 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; /*