hppa: Remove unused lll_unlock_wake_cb.
authorCarlos O'Donell <carlos@redhat.com>
Thu, 14 Feb 2013 15:34:48 +0000 (10:34 -0500)
committerCarlos O'Donell <carlos@redhat.com>
Thu, 14 Feb 2013 15:34:48 +0000 (10:34 -0500)
There hasn't been a use for lll_unlock_wake_cb since it was
removed globally in 2007-05-29. This patch removes the
function from hppa's lowlevellock.[ch] implementation.

ports/ChangeLog.hppa
ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c
ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h

index ef904c26710d22c5e1d7bebe0f09d3523287d9f2..6314f1269abbe91496c721f01b73bc211943e96f 100644 (file)
@@ -1,3 +1,10 @@
+2013-02-14  Carlos O'Donell  <carlos@redhat.com>
+
+       * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c
+       (lll_unlock_wake_cb): Remove.
+       * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:
+       Remove prototype for lll_unlock_wake_cb.
+
 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/hppa/fpu/fpu_control.h (_FPU_GETCW): Use __extension__
index 618edf7bc2e7cb6c009f940f341049b14f4eca3c..af63e1b9a856706f63c4b2fe484d30690477fcab 100644 (file)
@@ -86,17 +86,6 @@ __lll_timedlock_wait (lll_lock_t *futex, const struct timespec *abstime, int pri
 
 /* These don't get included in libc.so  */
 #ifdef IS_IN_libpthread
-int
-lll_unlock_wake_cb (lll_lock_t *futex)
-{
-  int val = atomic_exchange_rel (futex, 0);
-
-  if (__builtin_expect (val > 1, 0))
-    lll_private_futex_wake (futex, 1);
-  return 0;
-}
-
-
 int
 __lll_timedwait_tid (int *tidp, const struct timespec *abstime)
 {
@@ -134,6 +123,5 @@ __lll_timedwait_tid (int *tidp, const struct timespec *abstime)
 
   return 0;
 }
-
 #endif
 
index f37a7bbd74bf2daad1fadf94ea6d02dfab8fa3ff..b88703fbaf452984a68aa5b03e4c3e9cb10c0a5a 100644 (file)
@@ -317,8 +317,6 @@ __lll_robust_timedlock (int *futex, const struct timespec *abstime,
 #define THREAD_INIT_LOCK(PD, LOCK) \
   (PD)->LOCK = LLL_LOCK_INITIALIZER
 
-extern int lll_unlock_wake_cb (lll_lock_t *__futex) attribute_hidden;
-
 /* The kernel notifies a process which uses CLONE_CHILD_CLEARTID via futex
    wakeup when the clone terminates.  The memory location contains the
    thread ID while the clone is running and is reset to zero