bab merge to master
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
diff --git a/driver-bab.c b/driver-bab.c
index ae1de1a..1e859ee 100644
--- a/driver-bab.c
+++ b/driver-bab.c
@@ -1406,6 +1406,7 @@ static void bab_flush_work(struct cgpu_info *babcgpu)
#define WORK_BITS (18*4)
#define WORK_NONCE (19*4)
+#if 0
static void process_history(struct bab_info *babinfo, int chip, struct timeval *when, bool good, struct timeval *now)
{
K_ITEM *item;
@@ -1443,13 +1444,14 @@ static void process_history(struct bab_info *babinfo, int chip, struct timeval *
}
K_WUNLOCK(babinfo->nfree_list);
}
+#endif
/*
* Find the matching work item by checking the nonce against each work
* item for the chip
* Discard any work items older than a match or older than BAB_WORK_EXPIRE_mS
*/
-static bool oknonce(struct thr_info *thr, struct cgpu_info *babcgpu, int chip, uint32_t nonce, struct timeval *when)
+static bool oknonce(struct thr_info *thr, struct cgpu_info *babcgpu, int chip, uint32_t nonce, __maybe_unused struct timeval *when)
{
struct bab_info *babinfo = (struct bab_info *)(babcgpu->device_data);
unsigned int links, proc_links, work_links, tests;
@@ -1528,7 +1530,7 @@ static bool oknonce(struct thr_info *thr, struct cgpu_info *babcgpu, int chip, u
babinfo->max_proc_links = proc_links;
babinfo->total_work_links += work_links;
- process_history(babinfo, chip, when, true, &now);
+ //process_history(babinfo, chip, when, true, &now);
return true;
}
}
@@ -1553,7 +1555,7 @@ static bool oknonce(struct thr_info *thr, struct cgpu_info *babcgpu, int chip, u
babinfo->fail_total_links += links;
babinfo->fail_total_work_links += work_links;
- process_history(babinfo, chip, when, false, &now);
+ //process_history(babinfo, chip, when, false, &now);
} else {
babinfo->initial_ignored++;
babinfo->ign_total_tests += tests;