Changed semantics of sched_prev and sched_next.