aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/hppa/nptl/pthread_spin_unlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/hppa/nptl/pthread_spin_unlock.c')
-rw-r--r--sysdeps/hppa/nptl/pthread_spin_unlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/hppa/nptl/pthread_spin_unlock.c b/sysdeps/hppa/nptl/pthread_spin_unlock.c
index 5639ec84ec..885ce2b2ba 100644
--- a/sysdeps/hppa/nptl/pthread_spin_unlock.c
+++ b/sysdeps/hppa/nptl/pthread_spin_unlock.c
@@ -23,7 +23,7 @@ __pthread_spin_unlock (pthread_spinlock_t *lock)
{
/* CONCURRENCTY NOTES:
- The atomic_exchange_rel synchronizes-with the atomic_exhange_acq in
+ The atomic_exchange_release synchronizes-with the atomic_exhange_acq in
pthread_spin_lock.
On hppa we must not use a plain `stw` to reset the guard lock. This
@@ -40,7 +40,7 @@ __pthread_spin_unlock (pthread_spinlock_t *lock)
Therefore if a variable is used in an atomic macro it must always be
manipulated with atomic macros in order for memory ordering rules to
be preserved. */
- atomic_exchange_rel (lock, 0);
+ atomic_exchange_release (lock, 0);
return 0;
}
versioned_symbol (libc, __pthread_spin_unlock, pthread_spin_unlock,