add more stable max index checks

This commit is contained in:
Lightos1
2026-05-08 18:39:01 +02:00
parent b7e7f0f720
commit d443e069fd

View File

@@ -412,7 +412,10 @@ namespace clockManager {
board::SetHz((HocClkModule)module, nearestHz);
gContext.freqs[module] = nearestHz;
gContext.stable.freqs[module] = nearestHz;
if (module < HocClkModuleStable_EnumMax) {
gContext.stable.freqs[module] = nearestHz;
}
if (module == HocClkModule_CPU && config::GetConfigValue(HocClkConfigValue_LiveCpuUv)) {
HandleCpuUv();