Commit 4608eb47 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl/sched: generalize use of evl_schedq_is_empty()


Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent bbc73f27
......@@ -537,7 +537,7 @@ struct evl_thread *evl_get_schedq(struct evl_multilevel_queue *q)
struct list_head *head;
int idx;
if (q->elems == 0)
if (evl_schedq_is_empty(q))
return NULL;
idx = evl_get_schedq_weight(q);
......@@ -569,7 +569,7 @@ struct evl_thread *evl_fifo_pick(struct evl_rq *rq)
struct list_head *head;
int idx;
if (q->elems == 0)
if (evl_schedq_is_empty(q))
return NULL;
/*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment