Revert "hos-sys: remove global target (doesnt compile)"

This reverts commit 30dd6c2536.
This commit is contained in:
souldbminersmwc
2025-11-12 15:41:30 -05:00
parent 3ec4cc48e6
commit 40aefffbb2
2 changed files with 18 additions and 16 deletions

View File

@@ -281,13 +281,15 @@ void ClockManager::Tick()
for (unsigned int module = 0; module < SysClkModule_EnumMax; module++)
{
targetHz = this->context->overrideFreqs[module];
globalTargetHz = this->context->overrideFreqs[module];
if (!targetHz)
{
targetHz = this->config->GetAutoClockHz(this->context->applicationId, (SysClkModule)module, this->context->profile);
globalTargetHz = this->config->GetAutoClockHz(SYSCLK_GLOBAL_PROFILE_TID, (SysClkModule)module, this->context->profile);
}
if (targetHz)
if (targetHz || globalTargetHz)
{
maxHz = this->GetMaxAllowedHz((SysClkModule)module, this->context->profile);
nearestHz = this->GetNearestHz((SysClkModule)module, targetHz, maxHz);