sysclk: add speedo/iddq reading

This commit is contained in:
souldbminersmwc
2025-12-25 16:03:10 -05:00
parent f3c9bb5260
commit 42864af8d8
7 changed files with 238 additions and 66 deletions

View File

@@ -101,7 +101,11 @@ ClockManager::ClockManager()
threadStart(&governorTHREAD);
this->context->speedos[HorizonOCSpeedo_CPU] = Board::getCPUSpeedo();
this->context->speedos[HorizonOCSpeedo_GPU] = Board::getGPUSpeedo();
this->context->speedos[HorizonOCSpeedo_SOC] = Board::getSOCSpeedo();
}
ClockManager::~ClockManager()
@@ -439,7 +443,7 @@ void ClockManager::Tick()
}
isGovernorEnabled = newGovernorState;
}
if(module == HorizonOCModule_Display && this->config->GetConfigValue(HorizonOCConfigValue_OverwriteRefreshRate)) {
if(targetHz)
Board::SetHz(HorizonOCModule_Display, targetHz);