From 9c7595bda2c37b31e82dab424bfd3015664b176d Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Thu, 27 Dec 2012 08:20:46 -0800 Subject: Add sparc implementation of lll_futex_timed_wait_bitset nptl/ * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_timed_wait_bitset): New macro. --- nptl/ChangeLog | 5 +++++ nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h | 13 +++++++++++++ 2 files changed, 18 insertions(+) (limited to 'nptl') diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 78ffe2d..03dd156 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2012-12-27 David S. Miller + + * sysdeps/unix/sysv/linux/sparc/lowlevellock.h + (lll_futex_timed_wait_bitset): New macro. + 2012-12-27 Siddhesh Poyarekar * sysdeps/unix/sysv/linux/s390/lowlevellock.h (SYS_futex): diff --git a/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h b/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h index 939f41d..4799de1 100644 --- a/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h +++ b/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h @@ -95,6 +95,19 @@ extern void __cpu_relax (void); __ret; \ }) +#define lll_futex_timed_wait_bitset(futexp, val, timespec, clockbit, private) \ + ({ \ + INTERNAL_SYSCALL_DECL (__err); \ + long int __ret; \ + int __op = FUTEX_WAIT_BITSET | clockbit; \ + \ + __ret = INTERNAL_SYSCALL (futex, __err, 6, (futexp), \ + __lll_private_flag (__op, private), \ + (val), (timespec), NULL /* Unused. */, \ + FUTEX_BITSET_MATCH_ANY); \ + __ret; \ + }) + #define lll_futex_wake(futexp, nr, private) \ ({ \ INTERNAL_SYSCALL_DECL (__err); \ -- cgit v1.1