(lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock.
authordrepper <drepper>
Wed, 24 Mar 2004 23:25:37 +0000 (23:25 +0000)
committerdrepper <drepper>
Wed, 24 Mar 2004 23:25:37 +0000 (23:25 +0000)
nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h

index e9f895d..e107ef5 100644 (file)
 #define lll_mutex_trylock(lock)        __lll_trylock (&(lock))
 
 /* Set *futex to 2 if it is 0, atomically.  Returns the old value */
-#define lll_mutex_cond_trylock(futex) \
+#define __lll_cond_trylock(futex) \
   ({ int __val;                                                                      \
      __asm __volatile ("1:     lwarx   %0,0,%2\n"                            \
                       "        cmpwi   0,%0,0\n"                             \
                       : "cr0", "memory");                                    \
      __val;                                                                  \
   })
+#define lll_mutex_cond_trylock(lock)   __lll_cond_trylock (&(lock))
 
 
 extern void __lll_lock_wait (int *futex) attribute_hidden;