1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-10 04:31:03 +00:00

We should only yield once in cg_wunlock

This commit is contained in:
Con Kolivas 2013-09-29 15:16:25 +10:00
parent 5683a1144e
commit 01e3c878cf

View File

@ -899,7 +899,7 @@ static inline void cg_runlock(cglock_t *lock)
static inline void cg_wunlock(cglock_t *lock) static inline void cg_wunlock(cglock_t *lock)
{ {
wr_unlock(&lock->rwlock); wr_unlock_noyield(&lock->rwlock);
mutex_unlock(&lock->mutex); mutex_unlock(&lock->mutex);
} }