Browse Source

Rotate avalon array to reset the queued count before releasing the lock so work will always be available on next pass.

Con Kolivas 12 years ago
parent
commit
db7c72b892
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-avalon.c

+ 1 - 1
driver-avalon.c

@@ -730,6 +730,7 @@ static void *avalon_send_tasks(void *userdata)
 				avalon_reset(avalon, fd);
 			}
 		}
+		avalon_rotate_array(avalon);
 		pthread_cond_signal(&info->qcond);
 		mutex_unlock(&info->qlock);
 
@@ -738,7 +739,6 @@ static void *avalon_send_tasks(void *userdata)
 			applog(LOG_WARNING, "AVA%i: Idled %d miners",
 			       avalon->device_id, idled);
 		}
-		avalon_rotate_array(avalon);
 	}
 	return NULL;
 }