}
}
-/**
- * Add a task to the scheduler. Deprecated.
- *
- * \param t The task to add.
- * \param s The scheduler instance to add the task to.
- *
- * \sa task::pre_select, task::post_select
- */
-void register_task(struct sched *s, struct task *t)
-{
- PARA_INFO_LOG("registering %s (%p)\n", t->status, t);
- assert(t->post_select);
- t->notification = 0;
- t->owned_by_sched = false;
- if (!s->task_list.next)
- INIT_LIST_HEAD(&s->task_list);
- list_add_tail(&t->node, &s->task_list);
-}
-
/**
* Add a task to the scheduler task list.
*