SDL: N3DS: Use osSetSpeedupEnable instead of PTMSYSM.

From af2bc2ed0e3a2c131f40aaec8acfc43a0ec759d5 Mon Sep 17 00:00:00 2001
From: Pierre Wendling <[EMAIL REDACTED]>
Date: Sun, 18 Sep 2022 10:52:35 -0400
Subject: [PATCH] N3DS: Use osSetSpeedupEnable instead of PTMSYSM.

---
 src/main/n3ds/SDL_n3ds_main.c | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/src/main/n3ds/SDL_n3ds_main.c b/src/main/n3ds/SDL_n3ds_main.c
index 982dcb3c6081..244d73c39fb0 100644
--- a/src/main/n3ds/SDL_n3ds_main.c
+++ b/src/main/n3ds/SDL_n3ds_main.c
@@ -31,12 +31,8 @@
 #endif
 
 SDL_FORCE_INLINE void N3DS_Init(void);
-SDL_FORCE_INLINE void N3DS_SetCPUSpeed(void);
 SDL_FORCE_INLINE void N3DS_Quit(void);
 
-#define HIGH_CLOCK 1
-#define L2_CACHE   2
-
 int
 main(int argc, char *argv[])
 {
@@ -51,24 +47,12 @@ main(int argc, char *argv[])
 SDL_FORCE_INLINE void
 N3DS_Init(void)
 {
-    N3DS_SetCPUSpeed();
+    osSetSpeedupEnable(true);
     romfsInit();
     gfxInit(GSP_RGBA8_OES, GSP_RGBA8_OES, false);
     hidInit();
 }
 
-/* If available, enable L2 cache and high CPU clock */
-SDL_FORCE_INLINE void
-N3DS_SetCPUSpeed(void)
-{
-    if (R_SUCCEEDED(ptmSysmInit())) {
-        if (R_SUCCEEDED(PTMSYSM_CheckNew3DS())) {
-            PTMSYSM_ConfigureNew3DSCPU(HIGH_CLOCK | L2_CACHE);
-        }
-        ptmSysmExit();
-    }
-}
-
 SDL_FORCE_INLINE void
 N3DS_Quit(void)
 {