Inline non-boot irq functions called on the irq path. This improves performance of interrupt paths through code locality. Additionally, remove unused functions and use the BIT macro rather than redefining it.