From b810dea33bebec02a22a0fa33f53ee70f0fce89c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 21 Jun 2013 01:32:41 +1000 Subject: [PATCH] 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. --- driver-avalon.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/driver-avalon.c b/driver-avalon.c index edebe1cb..5894a1bc 100644 --- a/driver-avalon.c +++ b/driver-avalon.c @@ -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); } }