X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=sched.c;h=fe57e03eae01a1d4360ae41cdf61f893a9888128;hb=deb3326320166531abc35ce805dee4df6b49e936;hp=6b8e09108308336676e48c4d8c9e84eb6e388431;hpb=8bf35b38357c3ce59f52ae87f6e84e4b6d183ac7;p=paraslash.git diff --git a/sched.c b/sched.c index 6b8e0910..fe57e03e 100644 --- a/sched.c +++ b/sched.c @@ -208,25 +208,6 @@ void sched_shutdown(struct sched *s) } } -/** - * 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. *