]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Get rid of __LT_SPINLOCK_INIT
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 17 Mar 2014 14:01:46 +0000 (19:31 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 17 Mar 2014 14:05:11 +0000 (19:35 +0530)
We got rid of LinuxThreads in 2005, but we didn't remove
__LT_SPINLOCK_INIT back then.  Do it now.

* nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
&& !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
Remove.

ChangeLog
nptl/sysdeps/pthread/bits/libc-lockP.h

index 1c6b384be29093ac5086cdedb14e8e01e14f06ac..005b678aaf28cb3fdb9f2ebae83d6778d3b304c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
+       && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
+       Remove.
+
 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
 
        * math/gen-libm-test.pl (parse_args): Handle results specified for
index bacc678abd6515c9ffe9d776af984cdf3c0cb4df..ec202713d639f2cb49ef6a0f44dd70d8de3e7dd6 100644 (file)
@@ -78,13 +78,8 @@ typedef pthread_key_t __libc_key_t;
   CLASS __libc_lock_t NAME = LLL_LOCK_INITIALIZER;
 # endif
 #else
-# if __LT_SPINLOCK_INIT == 0
-#  define __libc_lock_define_initialized(CLASS,NAME) \
+# define __libc_lock_define_initialized(CLASS,NAME) \
   CLASS __libc_lock_t NAME;
-# else
-#  define __libc_lock_define_initialized(CLASS,NAME) \
-  CLASS __libc_lock_t NAME = PTHREAD_MUTEX_INITIALIZER;
-# endif
 #endif
 
 #define __libc_rwlock_define_initialized(CLASS,NAME) \