Browse Source

On dual GPUs, only autotune the shared fan once per gpu autotune cycle.

ckolivas 14 years ago
parent
commit
4995b7c241
1 changed files with 3 additions and 1 deletions
  1. 3 1
      adl.c

+ 3 - 1
adl.c

@@ -917,7 +917,9 @@ void gpu_autotune(int gpu, bool *enable)
 	if (temp && fanpercent >= 0 && ga->autofan) {
 		if (!ga->twin)
 			fan_autotune(gpu, temp, fanpercent, &fan_optimal);
-		else {
+		else if (ga->autofan && (ga->has_fanspeed || !ga->twin->autofan)) {
+			/* On linked GPUs, we autotune the fan only once, based
+			 * on the highest temperature from either GPUs */
 			int hightemp, fan_gpu;
 
 			if (twintemp > temp)