arch: arc: clear ici interrupt during init

clear the ici interrupts during init

Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
Wayne Ren 2019-10-25 01:04:39 +08:00 committed by Andrew Boie
parent 2b3c9905fe
commit 1e80f25cd1

View file

@ -75,6 +75,7 @@ void z_arc_slave_start(int cpu_num)
z_icache_setup();
z_irq_setup();
z_arc_connect_ici_clear();
z_irq_priority_set(IRQ_ICI, ARCV2_ICI_IRQ_PRIORITY, 0);
irq_enable(IRQ_ICI);
#endif
@ -153,6 +154,7 @@ static int arc_smp_init(struct device *dev)
if (bcr.ipi) {
/* register ici interrupt, just need master core to register once */
z_arc_connect_ici_clear();
IRQ_CONNECT(IRQ_ICI, ARCV2_ICI_IRQ_PRIORITY,
sched_ipi_handler, NULL, 0);