Update ptm.cpp

This commit is contained in:
souldbminersmwc
2026-01-24 15:17:50 -05:00
parent 5012836c7e
commit 86fce20b27

View File

@@ -28,10 +28,10 @@ Result CpuPtmBoost(perf_conf_entry* entry) {
bool isMariko = true;
#endif
if (!C.eristaCpuBoostClock || !C.marikoCpuBoostClock)
if ((C.eristaCpuBoostClock <= 1785000) || C.marikoCpuBoostClock <= 1785000)
R_SUCCEED();
u32 cpuPtmBoostNew = isMariko ? C.marikoCpuBoostClock * 1000 : C.eristaCpuBoostClock * 1000;
u32 cpuPtmBoostNew = isMariko ? (C.marikoCpuBoostClock * 1000) : (C.eristaCpuBoostClock * 1000);
PATCH_OFFSET(&(entry->cpu_freq_1), cpuPtmBoostNew);
PATCH_OFFSET(&(entry->cpu_freq_2), cpuPtmBoostNew);