summary refs log tree commit diff
path: root/sysdeps/htl/pt-once.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/htl/pt-once.c')
-rw-r--r--sysdeps/htl/pt-once.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/htl/pt-once.c b/sysdeps/htl/pt-once.c
index 7f86e28006..0104eebd3e 100644
--- a/sysdeps/htl/pt-once.c
+++ b/sysdeps/htl/pt-once.c
@@ -36,7 +36,7 @@ __pthread_once (pthread_once_t *once_control, void (*init_routine) (void))
   atomic_full_barrier ();
   if (once_control->__run == 0)
     {
-      __pthread_spin_lock (&once_control->__lock);
+      __pthread_spin_wait (&once_control->__lock);
 
       if (once_control->__run == 0)
 	{