Browse Source

kncasic: Do flush!

Vitalii Demianets 11 years ago
parent
commit
2262cd9dff
1 changed files with 7 additions and 0 deletions
  1. 7 0
      driver-kncasic.c

+ 7 - 0
driver-kncasic.c

@@ -1076,6 +1076,13 @@ void hash_driver_work(struct thr_info * const thr)
 		
 		
 		if (unlikely(thr->pause || cgpu->deven != DEV_ENABLED))
 		if (unlikely(thr->pause || cgpu->deven != DEV_ENABLED))
 			mt_disable(thr);
 			mt_disable(thr);
+
+		if (unlikely(thr->work_restart)) {
+			thr->work_restart = false;
+			flush_queue(cgpu);
+			drv->flush_work(cgpu);
+		}
+
 	}
 	}
 }
 }