Skip to content

Commit b6b4693

Browse files
committed
actually fix the reclocking, also disable the final upclock to retain sane clockspeeds
1 parent 7dcf5ec commit b6b4693

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

arm11/source/smp.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ static void wait_cycles(unsigned short cycles)
3131

3232
static void set_clock(short socmode)
3333
{
34-
if (get_pdn_lgr_socmode() == socmode)
34+
set_pdn_lgr_socmode(get_pdn_lgr_socmode());
35+
36+
if ((get_pdn_lgr_socmode() & 7) == socmode)
3537
return;
3638

3739
set_pdn_lgr_socmode(socmode);
@@ -98,7 +100,7 @@ static void online_cores23(void)
98100
scu_set_cpu_stat(scu_get_cpu_stat() & 0x0F);
99101
downclock();
100102
setup_overlays();
101-
upclock();
103+
// upclock();
102104
gic_send_swi(2, 2);
103105
gic_send_swi(3, 3);
104106
}

0 commit comments

Comments
 (0)