projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c5c68
)
s390: simplify transactional execution elf hwcap handling
author
Heiko Carstens
<heiko.carstens@de.ibm.com>
Thu, 9 Nov 2017 12:20:12 +0000
(13:20 +0100)
committer
Heiko Carstens
<heiko.carstens@de.ibm.com>
Thu, 9 Nov 2017 15:54:30 +0000
(16:54 +0100)
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>
arch/s390/kernel/setup.c
patch
|
blob
|
history
diff --git
a/arch/s390/kernel/setup.c
b/arch/s390/kernel/setup.c
index b5baaef11f9bfe17d2f68006b3441d807c4493c1..090053cf279bb1d7077082dcc1a90ababb716478 100644
(file)
--- 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;
/*