arc: fix management of IRQ priority levels
A previous re-work of IRQ priorities was led astray by an incorrect comment. Priority level 1 is not a non-maskable interrupt priority. In addition, zero latency IRQs are not implemented on ARC. Timer driver now doesn't specify IRQ_ZERO_LATENCY (as that wouldn't be correct) and its IRQ priority is now tunable in Kconfig. The default is 0. IPM driver on both ARC and x86 side were being configured with hard-coded priority of 2, which wasn't valid for ARC and caused an assertion failure. The priority level is now tunable with Kconfig and defaults to 1 for ARC. Issue: ZEP-693 Change-Id: If76dbfee214be7630d787be0bce4549a1ecbcb5b Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
d6fb8d3611
commit
533c2ee30d
10 changed files with 58 additions and 42 deletions
|
@ -338,7 +338,8 @@ int _sys_clock_driver_init(struct device *device)
|
|||
|
||||
cycles_per_tick = sys_clock_hw_cycles_per_tick;
|
||||
|
||||
IRQ_CONNECT(IRQ_TIMER0, 0, _timer_int_handler, NULL, IRQ_ZERO_LATENCY);
|
||||
IRQ_CONNECT(IRQ_TIMER0, CONFIG_ARCV2_TIMER_IRQ_PRIORITY,
|
||||
_timer_int_handler, NULL, 0);
|
||||
|
||||
/*
|
||||
* Set the reload value to achieve the configured tick rate, enable the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue