1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

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

@ -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);
}