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