fix clock reset bug

Co-Authored-By: ppkantorski <6467366+ppkantorski@users.noreply.github.com>
This commit is contained in:
souldbminersmwc
2026-04-30 19:36:10 -04:00
parent 1d9fa4c091
commit 77a7470149

View File

@@ -348,7 +348,8 @@ namespace clockManager {
std::uint32_t maxHz = 0;
std::uint32_t nearestHz = 0;
if (isBoost && !config::GetConfigValue(HocClkConfigValue_OverwriteBoostMode)) {
bool skipCpuDueToBoost = isBoost && !config::GetConfigValue(HocClkConfigValue_OverwriteBoostMode);
if (skipCpuDueToBoost) {
u32 boostFreq = board::GetHz(HocClkModule_CPU);
if (boostFreq / 1000000 > 1785) {
board::SetHz(HocClkModule_CPU, boostFreq);
@@ -396,7 +397,7 @@ namespace clockManager {
continue;
}
if (noCPU && module == HocClkModule_CPU)
if ((skipCpuDueToBoost || noCPU) && module == HocClkModule_CPU)
continue;
if (noGPU && module == HocClkModule_GPU)
continue;