From 71fbeef32af33000b391f46aeedb9e2f95a44d21 Mon Sep 17 00:00:00 2001 From: Lightos1 <124387232+Lightos1@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:14:19 +0100 Subject: [PATCH] Revert "Update ptm.cpp", worked before This reverts commit 86fce20b2740793aad8289308726f30ae0eba7e5. --- Source/Atmosphere/stratosphere/loader/source/oc/ptm/ptm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/ptm/ptm.cpp b/Source/Atmosphere/stratosphere/loader/source/oc/ptm/ptm.cpp index 84bb4f8b..2de4c927 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/ptm/ptm.cpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/ptm/ptm.cpp @@ -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);