hocclk: fix clock reset bug

This commit is contained in:
souldbminersmwc
2026-05-27 20:51:44 -04:00
parent d1308e0251
commit 3af3ad4a68
6 changed files with 24 additions and 22 deletions

View File

@@ -512,6 +512,8 @@ namespace clockManager {
u32 threshold = (u32)config::GetConfigValue(HocClkConfigValue_AutoRamCpuRamOCThreshold) * 1000;
if (ramHz >= threshold) {
u32 cpuOverrideHz = (u32)config::GetConfigValue(HocClkConfigValue_AutoRamCpuCpuOCFreq) * 1000;
if (cpuOverrideHz <= gContext.freqs[HocClkModule_CPU])
return;
maxHz = GetMaxAllowedHz(HocClkModule_CPU, gContext.profile);
nearestHz = GetNearestHz(HocClkModule_CPU, cpuOverrideHz, maxHz);
fileUtils::LogLine(