mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Consider the fan optimal if fanspeed is dropping but within the optimal speed window.
This commit is contained in:
parent
55e3217237
commit
1e3888336b
5
adl.c
5
adl.c
@ -1065,6 +1065,11 @@ static bool fan_autotune(int gpu, int temp, int fanpercent, int lasttemp, bool *
|
|||||||
if (newpercent != fanpercent) {
|
if (newpercent != fanpercent) {
|
||||||
applog(LOG_INFO, "Setting GPU %d fan percentage to %d", gpu, newpercent);
|
applog(LOG_INFO, "Setting GPU %d fan percentage to %d", gpu, newpercent);
|
||||||
set_fanspeed(gpu, newpercent);
|
set_fanspeed(gpu, newpercent);
|
||||||
|
/* If the fanspeed is going down and we're below the top speed,
|
||||||
|
* consider the fan optimal to prevent minute changes in
|
||||||
|
* fanspeed delaying GPU engine speed changes */
|
||||||
|
if (newpercent < fanpercent && *fan_window)
|
||||||
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user