+//#define SCHED_DEBUG 1
+static inline void call_post_select(struct sched *s, struct task *t)
+{
+#ifndef SCHED_DEBUG
+ t->post_select(s, t);
+#else
+ struct timeval t1, t2, diff;
+ unsigned long pst;
+
+ gettimeofday(&t1, NULL);
+ t->post_select(s, t);
+ gettimeofday(&t2, NULL);
+ tv_diff(&t1, &t2, &diff);
+ pst = tv2ms(&diff);
+ if (pst > 50)
+ PARA_WARNING_LOG("%s: post_select time: %lums\n",
+ t->status, pst);
+#endif
+}
+