Use C11 atomics instead of atomic_decrement_and_test
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 22 Sep 2022 14:40:37 +0000 (15:40 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Fri, 23 Sep 2022 14:59:56 +0000 (15:59 +0100)
commit4a07fbb689eeec30e7d71a0d144c26e0d1e424ac
tree85d53e165fb64b144ce9ac3018cd90afdd70bf4f
parentd1babeb32de5dae8893c640bd925357b218d846c
Use C11 atomics instead of atomic_decrement_and_test

Replace atomic_decrement_and_test with atomic_fetch_add_relaxed.
These are simple counters which do not protect any shared data from
concurrent accesses. Also remove the unused file cond-perf.c.

Passes regress on AArch64.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
htl/pt-dealloc.c
htl/pt-exit.c
manual/llio.texi
nptl/cond-perf.c [deleted file]
nptl/pthread_create.c
sysdeps/nptl/libc_start_call_main.h