From af5aaece970f00948c7619e570556a73e79f03f7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 30 Jan 2012 21:15:47 +1100 Subject: [PATCH] Revert "Pass the correct GPU from the menu to the adl code." This reverts commit 7bcda9a28fcaff801ed9ee9e0b6613cbdb3be646. Corrected for virtual device twice by mistake. --- adl.c | 3 +-- adl.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/adl.c b/adl.c index e2e4eb43..4d0e65e8 100644 --- a/adl.c +++ b/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; float fval, fmin = 0, fmax = 0; int val, imin = 0, imax = 0; diff --git a/adl.h b/adl.h index f0246c91..21567a80 100644 --- a/adl.h +++ b/adl.h @@ -17,13 +17,13 @@ int gpu_fanspeed(int gpu); int gpu_fanpercent(int gpu); bool gpu_stats(int gpu, float *temp, int *engineclock, int *memclock, float *vddc, 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 clear_adl(int nDevs); #else /* HAVE_ADL */ #define adl_active (0) 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) {} #endif #endif