about summary refs log tree commit diff
path: root/nptl/sysdeps/pthread/pthread_cond_signal.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-22 05:45:50 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-22 05:45:50 +0000
commitbc1989aad2a5246ea5d216546240609620451f87 (patch)
treed708ff3f97c49951c713cd6253ba8ceabcbcfa05 /nptl/sysdeps/pthread/pthread_cond_signal.c
parent3a226d33012ec69a480ddb58940f2aaa3e24f059 (diff)
downloadglibc-bc1989aad2a5246ea5d216546240609620451f87.tar.gz
glibc-bc1989aad2a5246ea5d216546240609620451f87.tar.xz
glibc-bc1989aad2a5246ea5d216546240609620451f87.zip
Update.
	* sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
	* sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
	* sysdeps/pthread/pthread_cond_signal.c: Don't use requeue.
Diffstat (limited to 'nptl/sysdeps/pthread/pthread_cond_signal.c')
-rw-r--r--nptl/sysdeps/pthread/pthread_cond_signal.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/nptl/sysdeps/pthread/pthread_cond_signal.c b/nptl/sysdeps/pthread/pthread_cond_signal.c
index b9d8af07b2..76203ac2cc 100644
--- a/nptl/sysdeps/pthread/pthread_cond_signal.c
+++ b/nptl/sysdeps/pthread/pthread_cond_signal.c
@@ -52,22 +52,7 @@ __pthread_cond_signal (cond)
 #endif
 
       /* Wake one.  */
-      int r = lll_futex_requeue (futex, 0, 1, &cond->__data.__lock);
-      if (__builtin_expect (r == -EINVAL, 0))
-	{
-	  /* The requeue functionality is not available.  */
-#ifndef __ASSUME_FUTEX_REQUEUE
-	  lll_futex_wake (futex, 1);
-#endif
-	}
-      else if (r != 0)
-	{
-	  /* We always have to make the syscall if requeue actually
-	     moved a thread.  */
-	  lll_mutex_unlock_force (cond->__data.__lock);
-
-	  return 0;
-	}
+      lll_futex_wake (futex, 1);
     }
 
   /* We are done.  */