Skip to content

Commit ecb0f0d

Browse files
authored
Merge pull request #25 from linux-3ds/fix-n3ds-clocking
fix new3ds clocking when booting from fb3ds/gm9 now it only reclocks when the current mode is different from the previous one
2 parents d07e6ad + b6b4693 commit ecb0f0d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

arm11/source/smp.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ static void wait_cycles(unsigned short cycles)
3131

3232
static void set_clock(short socmode)
3333
{
34+
set_pdn_lgr_socmode(get_pdn_lgr_socmode());
35+
36+
if ((get_pdn_lgr_socmode() & 7) == socmode)
37+
return;
38+
3439
set_pdn_lgr_socmode(socmode);
3540

3641
// Loop until the ACK bit is set.
@@ -95,7 +100,7 @@ static void online_cores23(void)
95100
scu_set_cpu_stat(scu_get_cpu_stat() & 0x0F);
96101
downclock();
97102
setup_overlays();
98-
upclock();
103+
// upclock();
99104
gic_send_swi(2, 2);
100105
gic_send_swi(3, 3);
101106
}

0 commit comments

Comments
 (0)