From: Andre Noll Date: Thu, 2 Jan 2014 01:01:58 +0000 (+0000) Subject: sched: Remove register_task(). X-Git-Tag: v0.5.3~8^2~11 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=deb3326320166531abc35ce805dee4df6b49e936;p=paraslash.git sched: Remove register_task(). Now that all users of this function have been converted to task_register(), the old function can go away. --- diff --git a/interactive.c b/interactive.c index 5d3303d7..6a1db536 100644 --- a/interactive.c +++ b/interactive.c @@ -439,7 +439,6 @@ static int dispatch_key(__a_unused int count, int key) * The caller must allocate and initialize the structure \a ici points to. * * \return Standard. - * \sa \ref register_task(). */ int i9e_open(struct i9e_client_info *ici, struct sched *s) { 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. * diff --git a/sched.h b/sched.h index fd714b61..0b7df7e8 100644 --- a/sched.h +++ b/sched.h @@ -99,7 +99,6 @@ extern struct timeval *now; struct task *task_register(struct task_info *info, struct sched *s); void *task_context(struct task *t); -void register_task(struct sched *s, struct task *t); int schedule(struct sched *s); void sched_shutdown(struct sched *s); char *get_task_list(struct sched *s);