mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
s390: add support for transactional memory
Allow user-space processes to use transactional execution (TX). If the TX facility is available user space programs can use transactions for fine-grained serialization based on the data objects that are referenced during a transaction. This is useful for lockless data structures and speculative compiler optimizations. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
e4b8b3f33f
commit
d35339a42d
14 changed files with 151 additions and 21 deletions
|
@ -980,6 +980,12 @@ static void __init setup_hwcaps(void)
|
|||
* HWCAP_S390_HIGH_GPRS is bit 9.
|
||||
*/
|
||||
elf_hwcap |= HWCAP_S390_HIGH_GPRS;
|
||||
|
||||
/*
|
||||
* Transactional execution support HWCAP_S390_TE is bit 10.
|
||||
*/
|
||||
if (test_facility(50) && test_facility(73))
|
||||
elf_hwcap |= HWCAP_S390_TE;
|
||||
#endif
|
||||
|
||||
get_cpu_id(&cpu_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue