powerpc: Fix usage of elision transient failure adapt param
authorPaul Murphy <murphyp@linux.vnet.ibm.com>
Thu, 27 Aug 2015 14:48:04 +0000 (09:48 -0500)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Tue, 27 Oct 2015 19:27:41 +0000 (17:27 -0200)
commit72f1463df85a522bfd1568e47bd81371522ee358
treea257dcbec150b619574c29326f89ee10d013891f
parent76c5ae00284d98f1994434c570bdcde9dbc6b49e
powerpc: Fix usage of elision transient failure adapt param

The skip_lock_out_of_tbegin_retries adaptive parameter was
not being used correctly, nor as described.  This prevents
a fallback for all users of the lock if a transient abort
occurs within the accepted number of retries.

[BZ #19174]
* sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
.skip_lock_out_of_tbegin_retries.
* sysdeps/unix/sysv/linux/powerpc/elision-lock.c
(__lll_lock_elision): Likewise, and respect a value of
try_tbegin <= 0.
ChangeLog
NEWS
sysdeps/powerpc/nptl/elide.h
sysdeps/unix/sysv/linux/powerpc/elision-lock.c