arc: interrupt_controller: increase irq unit priority
arc_v2_irq_unit_init function will init all interrupts and disable they, we must make sure we call it first before we use interrupts. so we need to increase its priority to highest in PRE_KERNEL_1 stage. Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
This commit is contained in:
parent
fd3a3be95a
commit
f05593e726
1 changed files with 2 additions and 4 deletions
|
@ -218,9 +218,7 @@ static int arc_v2_irq_unit_device_ctrl(const struct device *dev,
|
|||
}
|
||||
|
||||
SYS_DEVICE_DEFINE("arc_v2_irq_unit", arc_v2_irq_unit_init,
|
||||
arc_v2_irq_unit_device_ctrl, PRE_KERNEL_1,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
arc_v2_irq_unit_device_ctrl, PRE_KERNEL_1, 0);
|
||||
#else
|
||||
SYS_INIT(arc_v2_irq_unit_init, PRE_KERNEL_1,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(arc_v2_irq_unit_init, PRE_KERNEL_1, 0);
|
||||
#endif /* CONFIG_PM_DEVICE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue