fix cpu bug

This commit is contained in:
souldbminersmwc
2026-01-26 16:25:25 -05:00
parent fee7e7a4f4
commit f5d9761853
5 changed files with 5 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ include ${TOPDIR}/lib/libultrahand/ultrahand.mk
# version control constants
#---------------------------------------------------------------------------------
#TARGET_VERSION := $(shell git describe --dirty --always --tags)
APP_VERSION := 0.31
APP_VERSION := 0.33
TARGET_VERSION := $(APP_VERSION)
#---------------------------------------------------------------------------------

View File

@@ -118,7 +118,7 @@ void ClockManager::FixCpuBug() {
u32 maxHz = 0;
u32 nearestHz = 0;
ResetToStockClocks();
// ResetToStockClocks();
targetHz = this->context->overrideFreqs[SysClkModule_CPU];
if (!targetHz) {
@@ -134,9 +134,10 @@ void ClockManager::FixCpuBug() {
while ((nearestHz = this->GetNearestHz(SysClkModule_CPU, targetHz, maxHz)) != targetHz) {
Board::SetHz(SysClkModule_CPU, 1020000000);
svcSleepThread(2'500'000);
Board::SetHz(SysClkModule_CPU, nearestHz);
this->context->freqs[SysClkModule_CPU] = nearestHz;
Board::SetHz(SysClkModule_CPU, maxHz);
this->context->freqs[SysClkModule_CPU] = maxHz;
}
Board::SetHz(SysClkModule_CPU, targetHz);
}
}

Binary file not shown.

Binary file not shown.