This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Remove the unused x86_64 lll_futex_requeue
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 26 Jan 2011 17:47:18 -0800
- Subject: PATCH: Remove the unused x86_64 lll_futex_requeue
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
lll_futex_requeue is only used in pthread_cond_broadcast.c. But
x86_64 has pthread_cond_broadcast.S. This patch removes the unused
x86_64 lll_futex_requeue.
H.J.
---
2011-01-26 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_requeue):
Removed.
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h b/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
index 9b15bfb..5bd2c94 100644
--- a/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
+++ b/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
@@ -539,21 +539,6 @@ LLL_STUB_UNWIND_INFO_END
} \
while (0)
-/* Returns non-zero if error happened, zero if success. */
-#define lll_futex_requeue(ftx, nr_wake, nr_move, mutex, val, private) \
- ({ int __res; \
- register int __nr_move __asm ("r10") = nr_move; \
- register void *__mutex __asm ("r8") = mutex; \
- register int __val __asm ("r9") = val; \
- __asm __volatile ("syscall" \
- : "=a" (__res) \
- : "0" (__NR_futex), "D" ((void *) ftx), \
- "S" (__lll_private_flag (FUTEX_CMP_REQUEUE, \
- private)), "d" (nr_wake), \
- "r" (__nr_move), "r" (__mutex), "r" (__val) \
- : "cx", "r11", "cc", "memory"); \
- __res < 0; })
-
#define lll_islocked(futex) \
(futex != LLL_LOCK_INITIALIZER)