fix cpu bug

This commit is contained in:
souldbminersmwc committed 2026-01-26 16:25:25 -05:00
1 parent fee7e7a4f4
commit f5d9761853
5 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ include ${TOPDIR}/lib/libultrahand/ultrahand.mk
# version control constants # version control constants
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
#TARGET_VERSION := $(shell git describe --dirty --always --tags) #TARGET_VERSION := $(shell git describe --dirty --always --tags)
APP_VERSION := 0.31 APP_VERSION := 0.33
TARGET_VERSION := $(APP_VERSION) TARGET_VERSION := $(APP_VERSION)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
@@ -118,7 +118,7 @@ void ClockManager::FixCpuBug() {
u32 maxHz = 0; u32 maxHz = 0;
u32 nearestHz = 0; u32 nearestHz = 0;
ResetToStockClocks(); // ResetToStockClocks();
targetHz = this->context->overrideFreqs[SysClkModule_CPU]; targetHz = this->context->overrideFreqs[SysClkModule_CPU];
if (!targetHz) { if (!targetHz) {
@@ -134,9 +134,10 @@ void ClockManager::FixCpuBug() {
while ((nearestHz = this->GetNearestHz(SysClkModule_CPU, targetHz, maxHz)) != targetHz) { while ((nearestHz = this->GetNearestHz(SysClkModule_CPU, targetHz, maxHz)) != targetHz) {
Board::SetHz(SysClkModule_CPU, 1020000000); Board::SetHz(SysClkModule_CPU, 1020000000);
svcSleepThread(2'500'000); svcSleepThread(2'500'000);
Board::SetHz(SysClkModule_CPU, nearestHz); Board::SetHz(SysClkModule_CPU, maxHz);
this->context->freqs[SysClkModule_CPU] = nearestHz; this->context->freqs[SysClkModule_CPU] = maxHz;
} }
Board::SetHz(SysClkModule_CPU, targetHz);
} }
} }
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.