about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2019-01-30 10:52:19 -0800
committerVineet Gupta <vgupta@synopsys.com>2019-11-01 09:29:21 -0700
commite8d28fb62972cc4655a6733a322321396b5ec451 (patch)
tree0f994d5d178417688bae8d23845a09d9cc339790
parent6dc354fce07bbb199a15135ba3793d3fb03841b1 (diff)
downloadglibc-e8d28fb62972cc4655a6733a322321396b5ec451.tar.gz
glibc-e8d28fb62972cc4655a6733a322321396b5ec451.tar.xz
glibc-e8d28fb62972cc4655a6733a322321396b5ec451.zip
atomics: use default values for __PTHREAD_MUTEX_*
-rw-r--r--sysdeps/arc/nptl/bits/pthreadtypes-arch.h25
-rw-r--r--sysdeps/arc/nptl/pthread-offsets.h7
2 files changed, 15 insertions, 17 deletions
diff --git a/sysdeps/arc/nptl/bits/pthreadtypes-arch.h b/sysdeps/arc/nptl/bits/pthreadtypes-arch.h
index cd91785a33..eae884f61c 100644
--- a/sysdeps/arc/nptl/bits/pthreadtypes-arch.h
+++ b/sysdeps/arc/nptl/bits/pthreadtypes-arch.h
@@ -21,22 +21,21 @@
 
 #include <endian.h>
 
-#define __SIZEOF_PTHREAD_ATTR_T 36
-#define __SIZEOF_PTHREAD_MUTEX_T 24
-#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
-#define __SIZEOF_PTHREAD_COND_T 48
-#define __SIZEOF_PTHREAD_CONDATTR_T 4
-#define __SIZEOF_PTHREAD_RWLOCK_T 32
-#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __SIZEOF_PTHREAD_BARRIER_T 20
-#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
+#define __SIZEOF_PTHREAD_ATTR_T		32
+#define __SIZEOF_PTHREAD_MUTEX_T	32
+#define __SIZEOF_PTHREAD_MUTEXATTR_T	4
+#define __SIZEOF_PTHREAD_COND_T		48
+#define __SIZEOF_PTHREAD_CONDATTR_T	4
+#define __SIZEOF_PTHREAD_RWLOCK_T	32
+#define __SIZEOF_PTHREAD_RWLOCKATTR_T	8
+#define __SIZEOF_PTHREAD_BARRIER_T	20
+#define __SIZEOF_PTHREAD_BARRIERATTR_T	4
 
-/* Data structure for mutex handling.  */
 #define __PTHREAD_COMPAT_PADDING_MID
 #define __PTHREAD_COMPAT_PADDING_END
-#define __PTHREAD_MUTEX_LOCK_ELISION    0
-#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND  1
-#define __PTHREAD_MUTEX_USE_UNION          1
+#define __PTHREAD_MUTEX_LOCK_ELISION       0
+#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND  0
+#define __PTHREAD_MUTEX_USE_UNION          0
 
 #define __LOCK_ALIGNMENT
 #define __ONCE_ALIGNMENT
diff --git a/sysdeps/arc/nptl/pthread-offsets.h b/sysdeps/arc/nptl/pthread-offsets.h
index 9617354dc7..c363e8cda8 100644
--- a/sysdeps/arc/nptl/pthread-offsets.h
+++ b/sysdeps/arc/nptl/pthread-offsets.h
@@ -1,5 +1,4 @@
-#define __PTHREAD_MUTEX_NUSERS_OFFSET   16
-#define __PTHREAD_MUTEX_KIND_OFFSET     12
+#define __PTHREAD_MUTEX_NUSERS_OFFSET   12
+#define __PTHREAD_MUTEX_KIND_OFFSET     16
 #define __PTHREAD_MUTEX_SPINS_OFFSET    20
-#define __PTHREAD_MUTEX_ELISION_OFFSET  22
-#define __PTHREAD_MUTEX_LIST_OFFSET     20
+#define __PTHREAD_MUTEX_LIST_OFFSET     24