simplified sched_switch

sched_switch can check ISR itself.