(lll_robust_mutex_unlock): Avoid unnecessary wakeups.
* sysdeps/unix/sysv/linux/i386/lowlevellock.h
(lll_robust_mutex_unlock): Likewise.
+2006-02-17 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
+ (lll_robust_mutex_unlock): Avoid unnecessary wakeups.
+ * sysdeps/unix/sysv/linux/i386/lowlevellock.h
+ (lll_robust_mutex_unlock): Likewise.
+
2006-02-13 Jakub Jelinek <jakub@redhat.com>
* descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX):
".previous\n" \
"1:" \
: "=m" (futex), "=&a" (ignore) \
- : "i" (FUTEX_TID_MASK), "m" (futex) \
+ : "i" (FUTEX_WAITERS), "m" (futex) \
: "memory"); })
".previous\n" \
"2:" \
: "=m" (futex), "=&D" (ignore) \
- : "i" (FUTEX_TID_MASK), "m" (futex) \
+ : "i" (FUTEX_WAITERS), "m" (futex) \
: "ax", "cx", "r11", "cc", "memory"); })
# define MADV_WILLNEED 3 /* Will need these pages. */
# define MADV_DONTNEED 6 /* Don't need these pages. */
# define MADV_REMOVE 7 /* Remove these pages and resources. */
-# define MADV_DONTFORK 0x30 /* Do not inherit across fork. */
-# define MADV_DOFORK 0x31 /* Do inherit across fork. */
+# define MADV_DONTFORK 10 /* Do not inherit across fork. */
+# define MADV_DOFORK 11 /* Do inherit across fork. */
#endif
/* The POSIX people had to invent similar names for the same things. */
# define MADV_WILLNEED 3 /* Will need these pages. */
# define MADV_DONTNEED 4 /* Don't need these pages. */
# define MADV_REMOVE 5 /* Remove these pages and resources. */
-# define MADV_DONTFORK 0x30 /* Do not inherit across fork. */
-# define MADV_DOFORK 0x31 /* Do inherit across fork. */
+# define MADV_DONTFORK 10 /* Do not inherit across fork. */
+# define MADV_DOFORK 11 /* Do inherit across fork. */
#endif
/* The POSIX people had to invent similar names for the same things. */
# define MADV_WILLNEED 3 /* Will need these pages. */
# define MADV_DONTNEED 4 /* Don't need these pages. */
# define MADV_REMOVE 5 /* Remove these pages and resources. */
-# define MADV_DONTFORK 0x30 /* Do not inherit across fork. */
-# define MADV_DOFORK 0x31 /* Do inherit across fork. */
+# define MADV_DONTFORK 10 /* Do not inherit across fork. */
+# define MADV_DOFORK 11 /* Do inherit across fork. */
#endif
/* The POSIX people had to invent similar names for the same things. */
# define MADV_SEQUENTIAL 2 /* Expect sequential page references. */
# define MADV_WILLNEED 3 /* Will need these pages. */
# define MADV_DONTNEED 4 /* Don't need these pages. */
-# define MADV_DONTFORK 0x30 /* Do not inherit across fork. */
-# define MADV_DOFORK 0x31 /* Do inherit across fork. */
+# define MADV_DONTFORK 10 /* Do not inherit across fork. */
+# define MADV_DOFORK 11 /* Do inherit across fork. */
#endif
/* The POSIX people had to invent similar names for the same things. */
# define MADV_WILLNEED 3 /* Will need these pages. */
# define MADV_DONTNEED 4 /* Don't need these pages. */
# define MADV_REMOVE 5 /* Remove these pages and resources. */
-# define MADV_DONTFORK 0x30 /* Do not inherit across fork. */
-# define MADV_DOFORK 0x31 /* Do inherit across fork. */
+# define MADV_DONTFORK 10 /* Do not inherit across fork. */
+# define MADV_DOFORK 11 /* Do inherit across fork. */
#endif
/* The POSIX people had to invent similar names for the same things. */
# define MADV_WILLNEED 3 /* Will need these pages. */
# define MADV_DONTNEED 4 /* Don't need these pages. */
# define MADV_REMOVE 5 /* Remove these pages and resources. */
-# define MADV_DONTFORK 0x30 /* Do not inherit across fork. */
-# define MADV_DOFORK 0x31 /* Do inherit across fork. */
+# define MADV_DONTFORK 10 /* Do not inherit across fork. */
+# define MADV_DOFORK 11 /* Do inherit across fork. */
#endif
/* The POSIX people had to invent similar names for the same things. */
# define MADV_WILLNEED 3 /* Will need these pages. */
# define MADV_DONTNEED 4 /* Don't need these pages. */
# define MADV_REMOVE 5 /* Remove these pages and resources. */
-# define MADV_DONTFORK 0x30 /* Do not inherit across fork. */
-# define MADV_DOFORK 0x31 /* Do inherit across fork. */
+# define MADV_DONTFORK 10 /* Do not inherit across fork. */
+# define MADV_DOFORK 11 /* Do inherit across fork. */
#endif
/* The POSIX people had to invent similar names for the same things. */
# define MADV_DONTNEED 4 /* Don't need these pages. */
# define MADV_FREE 5 /* Content can be freed (Solaris). */
# define MADV_REMOVE 6 /* Remove these pages and resources. */
-# define MADV_DONTFORK 0x30 /* Do not inherit across fork. */
-# define MADV_DOFORK 0x31 /* Do inherit across fork. */
+# define MADV_DONTFORK 10 /* Do not inherit across fork. */
+# define MADV_DOFORK 11 /* Do inherit across fork. */
#endif
/* The POSIX people had to invent similar names for the same things. */
# define MADV_WILLNEED 3 /* Will need these pages. */
# define MADV_DONTNEED 4 /* Don't need these pages. */
# define MADV_REMOVE 5 /* Remove these pages and resources. */
-# define MADV_DONTFORK 0x30 /* Do not inherit across fork. */
-# define MADV_DOFORK 0x31 /* Do inherit across fork. */
+# define MADV_DONTFORK 10 /* Do not inherit across fork. */
+# define MADV_DOFORK 11 /* Do inherit across fork. */
#endif
/* The POSIX people had to invent similar names for the same things. */