Browse Source

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

nfactor-troky
Con Kolivas 12 years ago
parent
commit
db7c72b892
  1. 2
      driver-avalon.c

2
driver-avalon.c

@ -730,6 +730,7 @@ static void *avalon_send_tasks(void *userdata) @@ -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) @@ -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;
}

Loading…
Cancel
Save