powerpc: Fix adapt_count update in __lll_unlock_elision

Commit e9a96ea1ac had an error that
prevents adapt_count from being updated in __lll_unlock_elision.
This commit is contained in:
Tulio Magno Quites Machado Filho 2017-01-20 16:32:29 -02:00
parent 6d523660e9
commit eb1321f291
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-01-20 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
* sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
(__lll_unlock_elision): Fix adapt_count decrement.
2017-01-14 Martin Galvan <martingalvan@sourceware.org>
* README.pretty-printers (Known issues): Warn about printers not

View File

@ -35,7 +35,7 @@ __lll_unlock_elision (int *lock, short *adapt_count, int pshared)
the mutex destruction requirements. */
short __tmp = atomic_load_relaxed (adapt_count);
if (__tmp > 0)
atomic_store_relaxed (adapt_count, __tmp--);
atomic_store_relaxed (adapt_count, __tmp - 1);
lll_unlock ((*lock), pshared);
}