para_strerror(-t->error));
if (t->pre_select)
list_del(&t->pre_select_node);
- if (t->new_post_select || t->post_select)
+ if (t->post_select)
list_del(&t->post_select_node);
}
static inline void call_post_select(struct sched *s, struct task *t)
{
#ifndef SCHED_DEBUG
- if (t->new_post_select) {
- t->error = t->new_post_select(s, t);
- return;
- }
- return t->post_select(s, t);
+ t->error = t->post_select(s, t);
#else
struct timeval t1, t2, diff;
unsigned long pst;
clock_get_realtime(&t1);
- if (t->new_post_select)
- t->error = t->new_post_select(s, t);
- else
- t->post_select(s, t);
+ t->error = t->post_select(s, t);
clock_get_realtime(&t2);
tv_diff(&t1, &t2, &diff);
pst = tv2ms(&diff);
PARA_DEBUG_LOG("pre_select: %p\n", &t->pre_select);
list_add_tail(&t->pre_select_node, &s->pre_select_list);
}
- if (t->new_post_select) {
- PARA_DEBUG_LOG("post_select: %p\n", &t->new_post_select);
- list_add_tail(&t->post_select_node, &s->post_select_list);
- } else if ((t->post_select)) {
+ if (t->post_select) {
PARA_DEBUG_LOG("post_select: %p\n", &t->post_select);
list_add_tail(&t->post_select_node, &s->post_select_list);
}