tile: use atomic op to unlock pthread_spinlock_t
authorChris Metcalf <cmetcalf@tilera.com>
Tue, 6 Nov 2012 14:43:58 +0000 (09:43 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 6 Nov 2012 14:50:47 +0000 (09:50 -0500)
commit351dc60c55467552753646c1f585c3fb54cb2b06
treee3ad49ffc3b4d5481a0c0fe9c035f41bfa56ccdc
parenta0bce338e8e6f35e38183dfbcfc3c760ecd07159
tile: use atomic op to unlock pthread_spinlock_t

Atomic ops are issued directly from the core, rather than
potentially sitting in the write buffer, so can improve the
performance of other waiters.  In addition, if we didn't end
up pulling a copy of the cache line where the lock is into cache,
by using an atomic op we don't have to acquire the cache line
before we can unlock.
ports/ChangeLog.tile
ports/sysdeps/tile/nptl/pthread_spin_unlock.c [new file with mode: 0644]