mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
libspark/pwrmngr: don't fall-back to default cpu frequency
This commit is contained in:
@@ -49,14 +49,14 @@ bool cPowerManager::SetStandby(bool Active, bool Passive)
|
||||
bool cCpuFreqManager::SetCpuFreq(unsigned long f)
|
||||
{
|
||||
#ifdef MARTII
|
||||
if (f == 0)
|
||||
f = 450000000;
|
||||
if (f) {
|
||||
FILE *pll0 = fopen ("/proc/cpu_frequ/pll0_ndiv_mdiv", "w");
|
||||
if (pll0) {
|
||||
f /= 1000000;
|
||||
fprintf(pll0, "%lu\n", f/10 * 256 + 3);
|
||||
fprintf(pll0, "%lu\n", (f/10 << 8) | 3);
|
||||
fclose (pll0);
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#else
|
||||
/* actually SetCpuFreq is used to determine if the system is in standby
|
||||
|
Reference in New Issue
Block a user