Skip to content

Commit

Permalink
actually fix the reclocking, also disable the final upclock to retain…
Browse files Browse the repository at this point in the history
… sane clockspeeds
  • Loading branch information
Wolfvak committed Oct 18, 2021
1 parent 7dcf5ec commit b6b4693
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arm11/source/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit b6b4693

Please sign in to comment.