glibc/sysdeps/powerpc
Stefan Liebler b9579342c6 Remove support for lock elision.
The support for lock elision was already deprecated with glibc 2.42:
commit 77438db8cf
"Mark support for lock elision as deprecated."
See also discussions:
https://sourceware.org/pipermail/libc-alpha/2025-July/168492.html

This patch removes the architecture specific support for lock elision
for x86, powerpc and s390 by removing the elision-conf.h, elision-conf.c,
elision-lock.c, elision-timed.c, elision-unlock.c, elide.h, htm.h/hle.h files.
Those generic files are also removed.

The architecture specific structures are adjusted and the elision fields are
marked as unused.  See struct_mutex.h files.
Furthermore in struct_rwlock.h, the leftover __rwelision was also removed.
Those were originally removed with commit 0377a7fde6
"nptl: Remove rwlock elision definitions"
and by chance reintroduced with commit 7df8af43ad
"nptl: Add struct_rwlock.h"

The common code (e.g. the pthread_mutex-files) are changed back to the time
before lock elision was introduced with the x86-support:
- commit 1cdbe57948
"Add the low level infrastructure for pthreads lock elision with TSX"
- commit b023e4ca99
"Add new internal mutex type flags for elision."
- commit 68cc29355f
"Add minimal test suite changes for elision enabled kernels"
- commit e8c659d74e
"Add elision to pthread_mutex_{try,timed,un}lock"
- commit 49186d21ef
"Disable elision for any pthread_mutexattr_settype call"
- commit 1717da59ae
"Add a configure option to enable lock elision and disable by default"

Elision is removed also from the tunables, the initialization part, the
pretty-printers and the manual.

Some extra handling in the testsuite is removed as well as the full tst-mutex10
testcase, which tested a race while enabling lock elision.

I've also searched the code for "elision", "elide", "transaction" and e.g.
cleaned some comments.

I've run the testsuite on x86_64 and s390x and run the build-many-glibcs.py
script.
Thanks to Sachin Monga, this patch is also tested on powerpc.

A NEWS entry also mentions the removal.
Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
2025-11-18 14:21:13 +01:00
..
bits Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fpu math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
nofpu math: Add fetestexcept internal alias 2025-09-11 14:46:07 -03:00
nptl Remove support for lock elision. 2025-11-18 14:21:13 +01:00
power4 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
power6 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
powerpc32 powerpc: Consolidate atomic-machine.h 2025-11-04 04:14:01 -03:00
powerpc64 Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
sys/platform Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
Makefile i386: Update ___tls_get_addr to preserve vector registers 2025-06-19 04:30:31 +08:00
Versions
abort-instr.h
dl-diagnostics-cpu.c powerpc: Move cache geometry information to ld diagnostics 2025-03-05 11:22:09 -03:00
dl-lookupcfg.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-procinfo.c powerpc: Move AT_HWCAP descriptions to ld diagnostics 2025-03-05 11:22:09 -03:00
dl-tls.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-tls.h elf: Remove the remaining uses of GET_ADDR_OFFSET 2025-01-02 13:45:27 +01:00
dl-tunables.list Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
elf-initfini.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fpu_control.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
gccframe.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hwcapinfo.c Remove dl-procinfo.h 2025-03-05 11:22:09 -03:00
hwcapinfo.h powerpc: Remove unused dl-procinfo.h 2025-03-05 11:22:09 -03:00
ifunc-sel.h
jmpbuf-offsets.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
jmpbuf-unwind.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ldsodefs.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libc-tls.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
locale-defines.sym
longjmp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
machine-gmon.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
math-tests-snan-cast.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
math-use-builtins-ffs.h
mod-cache-ppc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mod-tlsopt-powerpc.c
novmx-longjmp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
novmx-sigjmp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
novmxsetjmp.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
preconfigure Update copyright in generated files by running "make" 2025-01-01 11:22:09 -08:00
preconfigure.ac
rtld-global-offsets.sym
sigjmp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sotruss-lib.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
string-fza.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sysdep.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-arith.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-arithf.c
test-get_hwcap-static.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-get_hwcap.c powerpc: Remove unused dl-procinfo.h 2025-03-05 11:22:09 -03:00
test-gettimebase.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
thread_pointer.h Move <thread_pointer.h> to kernel-independent sysdeps directories 2025-01-09 19:30:16 +01:00
tst-cache-ppc-static-dlopen.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-cache-ppc-static.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-cache-ppc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-set_ppr.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stack-align.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-tlsifunc-static.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-tlsifunc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-tlsopt-powerpc.c
utmp-size.h