From de8a73676b64d0a2a499ca6e6a60bddc6305591d Mon Sep 17 00:00:00 2001 From: Adrian Danis <Adrian.Danis@nicta.com.au> Date: Thu, 17 Mar 2016 11:20:36 +1100 Subject: [PATCH] trivial: Add unlikely --- src/object/interrupt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/interrupt.c b/src/object/interrupt.c index a6d67fc5b..7dd615daa 100644 --- a/src/object/interrupt.c +++ b/src/object/interrupt.c @@ -179,7 +179,7 @@ deletedIRQHandler(irq_t irq) void handleInterrupt(irq_t irq) { - if (irq > maxIRQ) { + if (unlikely(irq > maxIRQ)) { /* mask, ack and pretend it didn't happen. We assume that because * the interrupt controller for the platform returned this IRQ that * it is safe to use in mask and ack operations, even though it is -- GitLab