Exemplo n.º 1
0
struct sched_thd *schedule(struct sched_thd *t)
{
	struct sched_thd *n;

	assert(!t || !sched_thd_member(t));
	n = fp_get_highest_prio();
	assert(n);
	if (n != t) return n;
	assert(t);
	return fp_get_second_highest_prio(n);
}
Exemplo n.º 2
0
struct sched_thd *schedule(struct sched_thd *t)
{
	struct sched_thd *n;

	assert(!t || !sched_thd_member(t));
	/* printc("get the highest_prio ---> "); */
	n = fp_get_highest_prio();
	assert(n);
	if (n != t) return n;
	assert(t);
	/* printc("get the 2nd highest_prio ---> "); */
	return fp_get_second_highest_prio(n);
}