Commit 2b61d973cd5973654e7bf184a5652c226fbc8640

Con Kolivas 2012-02-11T19:54:15

Remove the test for whether the device is on the highest profil level before raising the GPU speed as it is ineffectual and may prevent raising the GPU speed.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/adl.c b/adl.c
index 8b2b1ff..eb5867f 100644
--- a/adl.c
+++ b/adl.c
@@ -1066,10 +1066,8 @@ void gpu_autotune(int gpu, bool *enable)
 			if (opt_debug)
 				applog(LOG_DEBUG, "Temperature %d degrees over target, decreasing clock speed", opt_hysteresis);
 			newengine = engine - ga->lpOdParameters.sEngineClock.iStep;
-			/* Only try to tune engine speed up if the current performance level is at max and this GPU is not
-			 * disabled */
-		} else if ((ga->lpActivity.iCurrentPerformanceLevel == ga->lpOdParameters.iNumberOfPerformanceLevels - 1) &&
-			   (temp < ga->targettemp && engine < ga->maxspeed) && *enable) {
+			/* Only try to tune engine speed up if this GPU is not disabled */
+		} else if (temp < ga->targettemp && engine < ga->maxspeed && *enable) {
 			if (opt_debug)
 				applog(LOG_DEBUG, "Temperature below target, increasing clock speed");
 			newengine = engine + ga->lpOdParameters.sEngineClock.iStep;