From 8641c9e6a522701e65cdde0d5027521d140e994c Mon Sep 17 00:00:00 2001 From: Benjamin Walsh Date: Thu, 24 Nov 2016 11:52:21 -0500 Subject: [PATCH] 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 --- arch/arm/core/irq_manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/core/irq_manage.c b/arch/arm/core/irq_manage.c index 39dd41464d6..58c0b62a567 100644 --- a/arch/arm/core/irq_manage.c +++ b/arch/arm/core/irq_manage.c @@ -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;