about summary refs log tree commit diff
path: root/nptl/sysdeps/pthread/pthread.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-03-26 13:48:00 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-04-09 06:41:44 -0500
commit01f8eac224421f07f28f91cc05db7459ea433ea4 (patch)
tree41e8a2952b7adfbd25daebcba10036f1be3ddfca /nptl/sysdeps/pthread/pthread.h
parentde21c33c068c8e39afb5711613a7c083c11ce6a1 (diff)
downloadglibc-01f8eac224421f07f28f91cc05db7459ea433ea4.tar.gz
glibc-01f8eac224421f07f28f91cc05db7459ea433ea4.tar.xz
glibc-01f8eac224421f07f28f91cc05db7459ea433ea4.zip
Move __PTHREAD_SPINS definition to architecture specific header
This patch moves the __PTHREAD_SPINS definition to arch specific header
since pthread_mutex_t layout is also arch specific.  This leads to no
need to defining __PTHREAD_MUTEX_HAVE_ELISION and thus removing of the
undefined compiler warning.
Diffstat (limited to 'nptl/sysdeps/pthread/pthread.h')
-rw-r--r--nptl/sysdeps/pthread/pthread.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/nptl/sysdeps/pthread/pthread.h b/nptl/sysdeps/pthread/pthread.h
index 1e0c5dc937..40a3e215cc 100644
--- a/nptl/sysdeps/pthread/pthread.h
+++ b/nptl/sysdeps/pthread/pthread.h
@@ -82,15 +82,6 @@ enum
 #endif
 
 
-/* Mutex initializers.  */
-#if __PTHREAD_MUTEX_HAVE_ELISION == 1 /* 64bit layout.  */
-#define __PTHREAD_SPINS 0, 0
-#elif __PTHREAD_MUTEX_HAVE_ELISION == 2 /* 32bit layout.  */
-#define __PTHREAD_SPINS { 0, 0 }
-#else
-#define __PTHREAD_SPINS 0
-#endif
-
 #ifdef __PTHREAD_MUTEX_HAVE_PREV
 # define PTHREAD_MUTEX_INITIALIZER \
   { { 0, 0, 0, 0, 0, __PTHREAD_SPINS, { 0, 0 } } }