2008-03-28 Guy Martin * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Use shared futex in lll_wait_tid(). diff -uNr ports.orig/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h --- ports.orig/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h 2008-03-18 13:37:56.000000000 +0100 +++ ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h 2008-03-18 13:38:30.000000000 +0100 @@ -325,12 +325,12 @@ thread ID while the clone is running and is reset to zero afterwards. */ #define lll_wait_tid(tid) \ - do \ - { \ - __typeof (tid) __tid; \ - while ((__tid = (tid)) != 0) \ - lll_futex_wait (&(tid), __tid, 0); \ - } \ + do \ + { \ + __typeof (tid) __tid; \ + while ((__tid = (tid)) != 0) \ + lll_futex_wait (&(tid), __tid, LLL_SHARED); \ + } \ while (0) extern int __lll_timedwait_tid (int *, const struct timespec *)