From a602f4e55fe69536086a98bb0b1e694a938a44e6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 11 Sep 2011 11:06:52 +1000 Subject: [PATCH] Only force the adapter speed to high if we've flagged this device as being managed. --- adl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/adl.c b/adl.c index 0a2afc30..e0d74232 100644 --- a/adl.c +++ b/adl.c @@ -224,9 +224,6 @@ void init_adl(int nDevs) if (ADL_Adapter_Speed_Get(iAdapterIndex, &ga->lpCurrent, &dummy) != ADL_OK) applog(LOG_INFO, "Failed to ADL_Adapter_Speed_Get"); - /* Force the speed to high, whether it's ignored or not */ - ADL_Adapter_Speed_Set(iAdapterIndex, ADL_CONTEXT_SPEED_FORCEHIGH); - if (ADL_Overdrive5_ODParameters_Get(iAdapterIndex, &ga->lpOdParameters) != ADL_OK) applog(LOG_INFO, "Failed to ADL_Overdrive5_ODParameters_Get"); @@ -332,6 +329,11 @@ void init_adl(int nDevs) if (opt_autoengine) ga->autoengine = true; + if (ga->managed) { + if (ADL_Adapter_Speed_Set(iAdapterIndex, ADL_CONTEXT_SPEED_FORCEHIGH) != ADL_OK) + applog(LOG_INFO, "Failed to ADL_Adapter_Speed_Set"); + } + gpus[gpu].has_adl = true; /* Flag adl as active if any card is successfully activated */