Commit b8a203ab330aedcfaad3b34c153b24302de74d3d

ckolivas 2013-06-15T21:33:12

Don't yield when downgrading a cg ilock.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/miner.h b/miner.h
index 942e2a0..2988848 100644
--- a/miner.h
+++ b/miner.h
@@ -824,7 +824,7 @@ static inline void cg_wlock(cglock_t *lock)
 static inline void cg_dlock(cglock_t *lock)
 {
 	rd_lock(&lock->rwlock);
-	mutex_unlock(&lock->mutex);
+	mutex_unlock_noyield(&lock->mutex);
 }
 
 static inline void cg_runlock(cglock_t *lock)