Revert "Update ptm.cpp", worked before

This reverts commit 86fce20b27.
This commit is contained in:
Lightos1
2026-01-24 22:14:19 +01:00
parent 86fce20b27
commit 71fbeef32a

View File

@@ -28,10 +28,10 @@ Result CpuPtmBoost(perf_conf_entry* entry) {
bool isMariko = true;
#endif
if ((C.eristaCpuBoostClock <= 1785000) || C.marikoCpuBoostClock <= 1785000)
if (!C.eristaCpuBoostClock || !C.marikoCpuBoostClock)
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);