@ -1066,10 +1066,8 @@ void gpu_autotune(int gpu, bool *enable)
@@ -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 ;