1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

Interrupting reads on the avalon to start writes loses data so remove the cgsem_post in the read code.

This commit is contained in:
Con Kolivas 2013-08-13 14:52:17 +10:00
parent 1d614599a7
commit 992a97a396

View File

@ -249,12 +249,6 @@ static int avalon_read(struct cgpu_info *avalon, unsigned char *buf,
if (amount < 2) if (amount < 2)
goto out; goto out;
/* Use the fact that we're reading the status with the buffer to tell
* the write thread it should send more work without needing to call
* avalon_buffer_full directly. */
if (avalon_cts(readbuf[0]))
cgsem_post(&info->write_sem);
/* The first 2 of every 64 bytes are status on FTDIRL */ /* The first 2 of every 64 bytes are status on FTDIRL */
while (amount > 2) { while (amount > 2) {
cp = amount - 2; cp = amount - 2;