Skip to content

Commit 5b0532e

Browse files
move interrupt clearing into set_clock
Results in smaller code. Signed-off-by: Nick Desaulniers <nick.desaulniers@gmail.com>
1 parent 691e5a3 commit 5b0532e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

arm11/source/smp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ static void set_clock(short socmode)
4040

4141
// Write it back to ACK.
4242
set_pdn_lgr_socmode(get_pdn_lgr_socmode());
43+
gic_clear_interrupt(88);
4344
}
4445

4546
static void upclock(void) { set_clock(is_lgr2() ? 0x05 : 0x03); }
@@ -51,7 +52,6 @@ static void set_socmode(void)
5152
enable_fcram_l2();
5253
wait_cycles(403);
5354
upclock();
54-
gic_clear_interrupt(88);
5555
}
5656

5757
__attribute__((noreturn))
@@ -94,10 +94,8 @@ static void online_cores23(void)
9494
{
9595
scu_set_cpu_stat(scu_get_cpu_stat() & 0x0F);
9696
downclock();
97-
gic_clear_interrupt(88);
9897
setup_overlays();
9998
upclock();
100-
gic_clear_interrupt(88);
10199
gic_send_swi(2, 2);
102100
gic_send_swi(3, 3);
103101
}

0 commit comments

Comments
 (0)