Browse Source

Revert "Pass the correct GPU from the menu to the adl code."

This reverts commit 7bcda9a28fcaff801ed9ee9e0b6613cbdb3be646.

Corrected for virtual device twice by mistake.
Con Kolivas 14 years ago
parent
commit
af5aaece97
2 changed files with 3 additions and 4 deletions
  1. 1 2
      adl.c
  2. 2 2
      adl.h

+ 1 - 2
adl.c

@@ -1163,9 +1163,8 @@ void change_autosettings(int gpu)
 	}
 	}
 }
 }
 
 
-void change_gpusettings(int disp_gpu)
+void change_gpusettings(int gpu)
 {
 {
-	int gpu = gpus[disp_gpu].virtual_gpu;
 	struct gpu_adl *ga = &gpus[gpu].adl;
 	struct gpu_adl *ga = &gpus[gpu].adl;
 	float fval, fmin = 0, fmax = 0;
 	float fval, fmin = 0, fmax = 0;
 	int val, imin = 0, imax = 0;
 	int val, imin = 0, imax = 0;

+ 2 - 2
adl.h

@@ -17,13 +17,13 @@ int gpu_fanspeed(int gpu);
 int gpu_fanpercent(int gpu);
 int gpu_fanpercent(int gpu);
 bool gpu_stats(int gpu, float *temp, int *engineclock, int *memclock, float *vddc,
 bool gpu_stats(int gpu, float *temp, int *engineclock, int *memclock, float *vddc,
 	       int *activity, int *fanspeed, int *fanpercent, int *powertune);
 	       int *activity, int *fanspeed, int *fanpercent, int *powertune);
-void change_gpusettings(int disp_gpu);
+void change_gpusettings(int gpu);
 void gpu_autotune(int gpu, bool *enable);
 void gpu_autotune(int gpu, bool *enable);
 void clear_adl(int nDevs);
 void clear_adl(int nDevs);
 #else /* HAVE_ADL */
 #else /* HAVE_ADL */
 #define adl_active (0)
 #define adl_active (0)
 static inline void init_adl(int nDevs) {}
 static inline void init_adl(int nDevs) {}
-static inline void change_gpusettings(int disp_gpu) { }
+static inline void change_gpusettings(int gpu) { }
 static inline void clear_adl(int nDevs) {}
 static inline void clear_adl(int nDevs) {}
 #endif
 #endif
 #endif
 #endif