Browse Source

littlefury: Need to set tv_morework

Luke Dashjr 12 years ago
parent
commit
0b3d3dfa32
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-littlefury.c

+ 2 - 0
driver-littlefury.c

@@ -364,6 +364,8 @@ bool littlefury_do_io(struct thr_info *thr)
 	if (bitfury->job_switched && thr->next_work)
 	if (bitfury->job_switched && thr->next_work)
 	{
 	{
 		mt_job_transition(thr);
 		mt_job_transition(thr);
+		// TODO: Delay morework until right before it's needed
+		timer_set_now(&thr->tv_morework);
 		job_start_complete(thr);
 		job_start_complete(thr);
 	}
 	}
 	if (thr->work && bitfury->results_n)
 	if (thr->work && bitfury->results_n)