From 8fe17e9de32062ec49a631c682b09a622dd20ea0 Mon Sep 17 00:00:00 2001 From: Kano Date: Fri, 26 Apr 2013 17:28:46 +1000 Subject: [PATCH] bflsc get completed hashes as late as possible --- driver-bflsc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/driver-bflsc.c b/driver-bflsc.c index 8e8c0db6..2c4e21fd 100644 --- a/driver-bflsc.c +++ b/driver-bflsc.c @@ -1521,6 +1521,10 @@ static int64_t bflsc_scanwork(struct thr_info *thr) } } + // avoid a hard loop + if (sc_info->scan_sleep_time > 0) + nmsleep(sc_info->scan_sleep_time); + // Count up the work done since we last were here wr_lock(&(sc_info->stat_lock)); ret = 0; @@ -1533,10 +1537,6 @@ static int64_t bflsc_scanwork(struct thr_info *thr) } wr_unlock(&(sc_info->stat_lock)); - // avoid a hard loop - if (sc_info->scan_sleep_time > 0) - nmsleep(sc_info->scan_sleep_time); - return ret; }