Effective placement of irq_disable and irq_enable functions