add more stable max index checks

This commit is contained in:
Lightos1 committed 2026-05-08 18:39:01 +02:00
1 parent b7e7f0f720
commit d443e069fd
1 file changed
+4 -1
@@ -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();