Clean up BUSY_WAIT_NOP and atomic_delay.
commit4eb984d3ab5641ce7992204756ac15a61f5f7181
authorTorvald Riegel <triegel@redhat.com>
Tue, 23 Jun 2015 13:22:25 +0000 (23 15:22 +0200)
committerTorvald Riegel <triegel@redhat.com>
Tue, 30 Jun 2015 13:57:15 +0000 (30 15:57 +0200)
tree12603bae9d2582033a3186174d1379121e1ea642
parente02920bc029019443326eecaa7b267b78ff2892e
Clean up BUSY_WAIT_NOP and atomic_delay.

This patch combines BUSY_WAIT_NOP and atomic_delay into a new
atomic_spin_nop function and adjusts all clients.  The new function is
put into atomic.h because what is best done in a spin loop is
architecture-specific, and atomics must be used for spinning.  The
function name is meant to tell users that this has no effect on
synchronization semantics but is a performance aid for spinning.
14 files changed:
ChangeLog
include/atomic.h
nptl/pthread_mutex_lock.c
nptl/pthread_mutex_timedlock.c
nscd/nscd-client.h
sysdeps/i386/i486/bits/atomic.h
sysdeps/nacl/lll_timedwait_tid.c
sysdeps/nacl/lowlevellock.h
sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
sysdeps/sparc/sparc64/bits/atomic.h
sysdeps/unix/sysv/linux/i386/lowlevellock.h
sysdeps/unix/sysv/linux/sparc/lowlevellock.h
sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
sysdeps/x86_64/bits/atomic.h