Blame SOURCES/glibc-rh841653-15.patch

147e83
commit 657c084cd6f69d6cc880c2ae65129a0723d053c5
147e83
Author: Andreas Schwab <schwab@suse.de>
147e83
Date:   Mon Dec 5 12:06:46 2016 +0100
147e83
147e83
    Get rid of __elision_available
147e83
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c
147e83
@@ -52,11 +52,6 @@ int __rwlock_rtm_enabled attribute_hidde
147e83
 
147e83
 int __rwlock_rtm_read_retries attribute_hidden = 3;
147e83
 
147e83
-/* Set when the CPU supports elision.  When false elision is never attempted.
147e83
- */
147e83
-
147e83
-int __elision_available attribute_hidden;
147e83
-
147e83
 /* Force elision for all new locks.  This is used to decide whether existing
147e83
    DEFAULT locks should be automatically upgraded to elision in
147e83
    pthread_mutex_lock().  Disabled for suid programs.  Only used when elision
147e83
@@ -71,10 +66,10 @@ elision_init (int argc __attribute__ ((u
147e83
 	      char **argv  __attribute__ ((unused)),
147e83
 	      char **environ)
147e83
 {
147e83
-  __elision_available = HAS_CPU_FEATURE (RTM);
147e83
+  int elision_available = HAS_CPU_FEATURE (RTM);
147e83
 #ifdef ENABLE_LOCK_ELISION
147e83
-  __pthread_force_elision = __libc_enable_secure ? 0 : __elision_available;
147e83
-  __rwlock_rtm_enabled = __libc_enable_secure ? 0 : __elision_available;
147e83
+  __pthread_force_elision = __libc_enable_secure ? 0 : elision_available;
147e83
+  __rwlock_rtm_enabled = __libc_enable_secure ? 0 : elision_available;
147e83
 #endif
147e83
 }
147e83
 
147e83
Index: glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h
147e83
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h
147e83
@@ -35,7 +35,6 @@ struct elision_config
147e83
 extern struct elision_config __elision_aconf attribute_hidden;
147e83
 
147e83
 extern int __rwlock_rtm_enabled attribute_hidden;
147e83
-extern int __elision_available attribute_hidden;
147e83
 extern int __pthread_force_elision attribute_hidden;
147e83
 
147e83
 /* Tell the test suite to test elision for this architecture.  */