Commit 01b8a49a79fcb24037e6ec4ee6b86e41aa7ca345

Con Kolivas 2014-02-04T19:51:38

Use increments of 10 when increasing hfa clock since it may not have 5 MHz granularity internally.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 22f87ad..3e80615 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -1011,7 +1011,7 @@ static void hfa_increase_clock(struct cgpu_info *hashfast, struct hashfast_info 
 {
 	struct hf_die_data *hdd = &info->die_data[die];
 	uint32_t diebit = 0x00000001ul << die;
-	uint16_t hdata, increase = 5;
+	uint16_t hdata, increase = 10;
 
 	if (hdd->hash_clock + increase > info->hash_clock_rate)
 		increase = info->hash_clock_rate - hdd->hash_clock;