arm: fix bug when Zero Latency Interrupts are enabled

An IRQ would always register as a ZIL interrupt.

Change-Id: If82a85f472a60512745652aacc7e8b7dfacaa268
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-11-24 11:52:21 -05:00 committed by Anas Nashif
commit 8641c9e6a5

View file

@ -100,7 +100,7 @@ void _irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags)
* Our policy is to express priority levels with special properties
* via flags
*/
if (flags | IRQ_ZERO_LATENCY) {
if (flags & IRQ_ZERO_LATENCY) {
prio = 2;
} else {
prio += IRQ_PRIORITY_OFFSET;