Use C11 atomics instead of atomic_increment(_val)
commitd1babeb32de5dae8893c640bd925357b218d846c
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 22 Sep 2022 14:32:40 +0000 (22 15:32 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Fri, 23 Sep 2022 14:59:56 +0000 (23 15:59 +0100)
treec5ee8e42e03e6a4caf2eb645d5f9b7a8bdbdb6e1
parent8114b95cef10a5a1fc3e529ab8b3a75f56fe889a
Use C11 atomics instead of atomic_increment(_val)

Replace atomic_increment and atomic_increment_val with atomic_fetch_add_relaxed.
One case in sem_post.c uses release semantics (see comment above it).
The others are simple counters and do not protect any shared data from
concurrent accesses.

Passes regress on AArch64.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
htl/pt-create.c
manual/ipc.texi
manual/llio.texi
nptl/nptl_setxid.c
nptl/pthread_create.c
nptl/sem_post.c
nscd/cache.c
nscd/nscd_helper.c
sysdeps/unix/sysv/linux/check_pf.c