diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-07-10 10:57:57 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-07-10 10:57:57 -0700 |
commit | 887865fcfab05939dabec78f5ad358d0283602d3 (patch) | |
tree | 91b4182f7d892a8bb784c8ac9f9caba22117387e /sysdeps/unix/sysv/linux/powerpc | |
parent | 585367266923156ac6fb789939a923641ba5aaf4 (diff) | |
download | glibc-887865fcfab05939dabec78f5ad358d0283602d3.tar.gz glibc-887865fcfab05939dabec78f5ad358d0283602d3.tar.xz glibc-887865fcfab05939dabec78f5ad358d0283602d3.zip |
Get rid of lll_robust_trylock.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc')
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/lowlevellock.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h b/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h index ab92c3fc8f..4af4a8206c 100644 --- a/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h +++ b/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h @@ -202,23 +202,6 @@ # endif #endif -/* Set *futex to ID if it is 0, atomically. Returns the old value */ -#define __lll_robust_trylock(futex, id) \ - ({ int __val; \ - __asm __volatile ("1: lwarx %0,0,%2" MUTEX_HINT_ACQ "\n" \ - " cmpwi 0,%0,0\n" \ - " bne 2f\n" \ - " stwcx. %3,0,%2\n" \ - " bne- 1b\n" \ - "2: " __lll_acq_instr \ - : "=&r" (__val), "=m" (*futex) \ - : "r" (futex), "r" (id), "m" (*futex) \ - : "cr0", "memory"); \ - __val; \ - }) - -#define lll_robust_trylock(lock, id) __lll_robust_trylock (&(lock), id) - /* Set *futex to 1 if it is 0, atomically. Returns the old value */ #define __lll_trylock(futex) __lll_robust_trylock (futex, 1) |