added irq for switching scheuling type