diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-11-07 12:30:56 -0500 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2015-01-12 06:30:54 -0500 |
commit | 4b45943a6f62cfc239e79ad8902f5c7f71fd13ec (patch) | |
tree | e297f0a960da29f470318e704890fbd52bf77fef /ChangeLog | |
parent | 8d2c0a593bdefd220be0822fb70de6b8d3bfd39d (diff) | |
download | glibc-4b45943a6f62cfc239e79ad8902f5c7f71fd13ec.tar glibc-4b45943a6f62cfc239e79ad8902f5c7f71fd13ec.tar.gz glibc-4b45943a6f62cfc239e79ad8902f5c7f71fd13ec.tar.bz2 glibc-4b45943a6f62cfc239e79ad8902f5c7f71fd13ec.zip |
powerpc: Add adaptive elision to rwlocks
This patch adds support for lock elision using ISA 2.07 hardware
transactional memory for rwlocks. The logic is similar to the
one presented in pthread_mutex lock elision.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,5 +1,16 @@ 2014-01-12 Adhemerval Zanella <azanella@linux.vnet.ibm.com> + * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support + for powerpc. + * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h + [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case + and remove it for 32 bits case. + [pthread_rwlock_t] (__rwelision): New field for lock elision. + (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field + initialization. + * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): + Disable lock elision with rdlocks if elision is not available. + * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl] (sysdep_routines): Add lock elision objects. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h |