Set the work generation thread high priority, not the miner threads.
diff --git a/cgminer.c b/cgminer.c
index 742871a..4fd9106 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -7226,7 +7226,6 @@ void *miner_thread(void *userdata)
applog(LOG_DEBUG, "Waiting on sem in miner thread");
cgsem_wait(&mythr->sem);
- set_highprio();
cgpu->last_device_valid_work = time(NULL);
drv->hash_work(mythr);
out:
@@ -8945,6 +8944,8 @@ begin_bench:
if (total_control_threads != 8)
quit(1, "incorrect total_control_threads (%d) should be 8", total_control_threads);
+ set_highprio();
+
/* Once everything is set up, main() becomes the getwork scheduler */
while (42) {
int ts, max_staged = opt_queue;