Common scheduler entry points

void sched_instance_select(void)
void mi_switch(int flags)
void setrunnable(struct thread*, int)