about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorDominik Vogt <vogt@linux.vnet.ibm.com>2014-05-09 16:58:46 +0200
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-05-09 16:58:46 +0200
commit5a414ff70c3a45e52b5f5c0741bd459a84cf56b8 (patch)
tree036ad6a707ea587149cb057f3e41b7bdd086cbdd /configure.ac
parentf63c86fed0ddf38f53de486c5ec537455c00bd52 (diff)
downloadglibc-5a414ff70c3a45e52b5f5c0741bd459a84cf56b8.tar.gz
glibc-5a414ff70c3a45e52b5f5c0741bd459a84cf56b8.tar.xz
glibc-5a414ff70c3a45e52b5f5c0741bd459a84cf56b8.zip
S/390: Port of lock elision to System/z
Added support for TX lock elision of pthread mutexes on s390 and
s390x.  This may improve lock scaling of existing programs on TX
capable systems.  The lock elision code is only built with
--enable-lock-elision=yes and then requires a GCC version supporting
the TX builtins.  With lock elision default mutexes are elided via
__builtin_tbegin, if the cpu supports transactions. By default lock
elision is not enabled and the elision code is not built.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 97a959114d..babfe5713c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -184,6 +184,7 @@ AC_ARG_ENABLE([lock-elision],
 			     [Enable lock elision for pthread mutexes by default]),
 	      [enable_lock_elision=$enableval],
 	      [enable_lock_elision=no])
+AC_SUBST(enable_lock_elision)
 if test "$enable_lock_elision" = yes ; then
   AC_DEFINE(ENABLE_LOCK_ELISION)
 fi