use g_info.hw_caps->can_cpufreq to control the cpu frequency

Origin commit data
------------------
Commit: 474e66e129
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-08-30 (Sun, 30 Aug 2020)

Origin message was:
------------------
- use g_info.hw_caps->can_cpufreq to control the cpu frequency
This commit is contained in:
vanhofen
2020-08-30 22:49:37 +02:00
parent e4594292a5
commit e2f62205b5
4 changed files with 21 additions and 29 deletions

View File

@@ -743,7 +743,8 @@ extern cCpuFreqManager * cpuFreq;
printf("CCpuFreqNotifier: %d Mhz\n", freq);
freq *= 1000*1000;
cpuFreq->SetCpuFreq(freq);
if (cpuFreq)
cpuFreq->SetCpuFreq(freq);
return false;
}