Commit 5f4ee5b6cc721d9bc1e7c526875692e880ab1a8a

Con Kolivas 2014-02-06T15:46:05

Revert "Only adjust die speeds as well as fanspeeds on hfa if we've taken enough temperature samples." This reverts commit 0a0418d8a608de53ac84c7ad4cee32290b8c6882.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 7b25b71..eee792c 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -1140,6 +1140,8 @@ static void hfa_temp_clock(struct cgpu_info *hashfast, struct hashfast_info *inf
 	}
 
 	/* Find the direction of temperature change since we last checked */
+	if (info->temp_updates < 5)
+		goto fan_only;
 	info->temp_updates = 0;
 	temp_change = info->max_temp - info->last_max_temp;
 	info->last_max_temp = info->max_temp;
@@ -1171,6 +1173,7 @@ static void hfa_temp_clock(struct cgpu_info *hashfast, struct hashfast_info *inf
 		}
 	}
 
+fan_only:
 	/* Do no restarts at all if there has been one less than 15 seconds
 	 * ago */
 	if (now_t - info->last_restart < 15)