Commit b45ae688be447014562fa0d3d6e8da5bfc75911d

Con Kolivas 2014-02-04T20:02:48

Have some leeway before starting to throttle hfa dies.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 3e80615..84107ed 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -1121,6 +1121,9 @@ fan_only:
 			/* Already at min speed */
 			if (hdd->hash_clock == HFA_CLOCK_MIN)
 				continue;
+			/* Have some leeway before throttling speed */
+			if (hdd->temp < opt_hfa_target + HFA_TEMP_HYSTERESIS)
+				break;
 			hfa_decrease_clock(hashfast, info, i);
 		} else {
 			/* Temp below target range.*/