Commit 7e3d057787185c14d65836eda074db68c9b0a0d7

Con Kolivas 2014-01-31T21:57:50

Wake the global work scheduler when we remove a work item from the unqueued work pointer.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index e6e9dcd..dc40c91 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -6377,6 +6377,7 @@ struct work *get_queued(struct cgpu_info *cgpu)
 		if (unlikely(stale_work(work, false))) {
 			discard_work(work);
 			work = NULL;
+			wake_gws();
 			goto out_unlock;
 		}
 		__add_queued(cgpu, work);