From 03f4f7e6a6abac3e29778276854c22b00eca5a2a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 22 Feb 2012 14:26:29 +1100 Subject: [PATCH] We should be setting the value of fan_optimal, not its address. --- adl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adl.c b/adl.c index eef54bb4..114ed3eb 100644 --- a/adl.c +++ b/adl.c @@ -1019,7 +1019,7 @@ static void fan_autotune(int gpu, int temp, int fanpercent, bool __maybe_unused else if (newpercent < iMin) newpercent = iMin; if (newpercent != fanpercent) { - fan_optimal = false; + *fan_optimal = false; applog(LOG_INFO, "Setting GPU %d fan percentage to %d", gpu, newpercent); set_fanspeed(gpu, newpercent); }