fix cpu bug
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
dist/atmosphere/contents/00FF0000636C6BFF/exefs.nsp
vendored
BIN
dist/atmosphere/contents/00FF0000636C6BFF/exefs.nsp
vendored
Binary file not shown.
BIN
dist/atmosphere/kips/hoc.kip
vendored
BIN
dist/atmosphere/kips/hoc.kip
vendored
Binary file not shown.
BIN
dist/switch/.overlays/horizon-oc-overlay.ovl
vendored
BIN
dist/switch/.overlays/horizon-oc-overlay.ovl
vendored
Binary file not shown.
Reference in New Issue
Block a user