Checking whether there are more than one thread makes no sense here
authordrepper <drepper>
Wed, 30 May 2007 04:07:39 +0000 (04:07 +0000)
committerdrepper <drepper>
Wed, 30 May 2007 04:07:39 +0000 (04:07 +0000)
since we only call the slow path if the locks are taken.

nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S

index 21bf58c..3265eee 100644 (file)
 
 #include <kernel-features.h>
 
-/* In libc.so we do not unconditionally use the lock prefix.  Only if
-   the application is using threads.  */
-#ifndef UP
-# define LOCK \
-       cmpl    $0, __libc_multiple_threads(%rip);                            \
-       je      0f;                                                           \
-       lock;                                                                 \
-0:
-#endif
-
 /* All locks in libc are private.  Use the kernel feature if possible.  */
 #define FUTEX_PRIVATE_FLAG     128
 #ifdef __ASSUME_PRIVATE_FUTEX