Commit b77656b78b548066fb9b7b5d06f9def5478ff3cc

Con Kolivas 2012-02-22T14:39:22

If we're well below the target temperature, increase gpu engine speed back to maximum in case we have gotten lost between profiles during an idle period.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/adl.c b/adl.c
index 114ed3e..daf3980 100644
--- a/adl.c
+++ b/adl.c
@@ -1079,6 +1079,8 @@ void gpu_autotune(int gpu, enum dev_enable *denable)
 			/* Only try to tune engine speed up if this GPU is not disabled */
 		} else if (temp < ga->targettemp && engine < ga->maxspeed && *denable == DEV_ENABLED) {
 			applog(LOG_DEBUG, "Temperature below target, increasing clock speed");
+			if (temp < ga->targettemp - opt_hysteresis)
+				newengine = ga->maxspeed;
 			newengine = engine + ga->lpOdParameters.sEngineClock.iStep;
 		} else if (temp < ga->targettemp && *denable == DEV_RECOVER && opt_restart) {
 			applog(LOG_NOTICE, "Device recovered to temperature below target, re-enabling");