1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

Revert "Sleep for less time in wait_avalon_ready till we have a better signalling system from read thread to write."

This reverts commit 98862b4f46b801e14b9474fdac4286145cbdf6b6.
This commit is contained in:
Con Kolivas 2013-06-21 01:32:41 +10:00
parent 7e6cbf080e
commit b810dea33b

View File

@ -225,13 +225,12 @@ static bool avalon_decode_nonce(struct thr_info *thr, struct cgpu_info *avalon,
return submit_nonce(thr, work, nonce);
}
/* Wait until the ftdi chip returns a CTS saying we can send more data. Sleep
* for less time than the avalon_read function will wait so we are guaranteed
* to go first. */
/* Wait until the ftdi chip returns a CTS saying we can send more data. The
* status is updated every 40ms. */
static void wait_avalon_ready(struct cgpu_info *avalon)
{
while (avalon_buffer_full(avalon)) {
nmsleep(16);
nmsleep(40);
}
}