Avoid unnecessary invocations of irq2nvic_h