From b6b46936779b786175523dc4cce8a5393d473e58 Mon Sep 17 00:00:00 2001 From: Wolfvak Date: Mon, 18 Oct 2021 09:45:06 -0300 Subject: [PATCH] actually fix the reclocking, also disable the final upclock to retain sane clockspeeds --- arm11/source/smp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arm11/source/smp.c b/arm11/source/smp.c index 9108341..f2d9ab2 100644 --- a/arm11/source/smp.c +++ b/arm11/source/smp.c @@ -31,7 +31,9 @@ static void wait_cycles(unsigned short cycles) static void set_clock(short socmode) { - if (get_pdn_lgr_socmode() == socmode) + set_pdn_lgr_socmode(get_pdn_lgr_socmode()); + + if ((get_pdn_lgr_socmode() & 7) == socmode) return; set_pdn_lgr_socmode(socmode); @@ -98,7 +100,7 @@ static void online_cores23(void) scu_set_cpu_stat(scu_get_cpu_stat() & 0x0F); downclock(); setup_overlays(); - upclock(); + // upclock(); gic_send_swi(2, 2); gic_send_swi(3, 3); }