arc: move special-purpose irq priorities to flags
We have already done this on x86 and ARM. The policy is as follows: * IRQ priority levels starting at 0 all have the same semantics and do not have special properties. The priority level is either ignored on arches which do not support programmable priority levels, or lower priority levels take precedence over higher ones. * Special-case priorty levels are specified via flags, in which case the supplied priority level is ignored. Issue: ZEP-60 Change-Id: Ic603f49299ee1426fb9350ca29d0b8ef96a1d53a Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
78881ebd3b
commit
96cadd1a9a
6 changed files with 40 additions and 22 deletions
|
@ -338,8 +338,7 @@ int _sys_clock_driver_init(struct device *device)
|
|||
|
||||
cycles_per_tick = sys_clock_hw_cycles_per_tick;
|
||||
|
||||
IRQ_CONNECT(CONFIG_ARCV2_TIMER0_INT_LVL, CONFIG_ARCV2_TIMER0_INT_PRI,
|
||||
_timer_int_handler, 0, 0);
|
||||
IRQ_CONNECT(IRQ_TIMER0, 0, _timer_int_handler, NULL, IRQ_ZERO_LATENCY);
|
||||
|
||||
/*
|
||||
* Set the reload value to achieve the configured tick rate, enable the
|
||||
|
@ -353,7 +352,7 @@ int _sys_clock_driver_init(struct device *device)
|
|||
|
||||
/* everything has been configured: safe to enable the interrupt */
|
||||
|
||||
irq_enable(CONFIG_ARCV2_TIMER0_INT_LVL);
|
||||
irq_enable(IRQ_TIMER0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue