Browse Source

DevAPI: Some designs set the main thr tv_poll from secondary thrs, so check it after the loop

Luke Dashjr 11 years ago
parent
commit
93f7229eba
1 changed files with 3 additions and 0 deletions
  1. 3 0
      deviceapi.c

+ 3 - 0
deviceapi.c

@@ -689,6 +689,9 @@ redo:
 			reduce_timeout_to(&tv_timeout, &mythr->tv_watchdog);
 		}
 		
+		// HACK: Some designs set the main thr tv_poll from secondary thrs
+		reduce_timeout_to(&tv_timeout, &cgpu->thr[0]->tv_poll);
+		
 		do_notifier_select(thr, &tv_timeout);
 	}
 }