feat(sys-clk-oc): set mariko min clock to 1020Mhz if using governor

Mariko: If using governor and cpu profile is higher than 1020, min clock will be set to 1020.
Not much power saved by underclocking below 1020, so to prevent stutter and hanging
This commit is contained in:
hanabbi
2023-04-25 00:35:57 +09:00
parent ccf0eccbf1
commit b9b36de4c9
3 changed files with 15 additions and 0 deletions

View File

@@ -294,6 +294,12 @@ void Governor::SetMaxHz(uint32_t maxHz, SysClkModule module) {
}
}
void Governor::SetMinHz(uint32_t minHz, SysClkModule module) {
if (module == SysClkModule_CPU) {
m_cpu_gov->min_hz = minHz;
}
}
void Governor::GovernorManager::Start() {
if (this->running)
return;