about summary refs log tree commit diff
path: root/sysdeps/hppa/nptl/pthread_spin_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/hppa/nptl/pthread_spin_init.c')
-rw-r--r--sysdeps/hppa/nptl/pthread_spin_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/hppa/nptl/pthread_spin_init.c b/sysdeps/hppa/nptl/pthread_spin_init.c
index aca5e01fce..f2a2009daa 100644
--- a/sysdeps/hppa/nptl/pthread_spin_init.c
+++ b/sysdeps/hppa/nptl/pthread_spin_init.c
@@ -23,7 +23,7 @@ __pthread_spin_init (pthread_spinlock_t *lock, int pshared)
 {
   /* 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_init (pthread_spinlock_t *lock, int pshared)
      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_init, pthread_spin_init,