Commit 8a272917 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl/sched: remove useless lookup-by-prio helper


Signed-off-by: default avatarPhilippe Gerum <rpm@xenomai.org>
parent 48a9426d
......@@ -44,9 +44,6 @@ void evl_init_schedq(struct evl_multilevel_queue *q);
struct evl_thread *evl_get_schedq(struct evl_multilevel_queue *q);
struct evl_thread *
evl_lookup_schedq(struct evl_multilevel_queue *q, int prio);
static __always_inline
int evl_schedq_is_empty(struct evl_multilevel_queue *q)
{
......
......@@ -648,20 +648,6 @@ struct evl_thread *evl_get_schedq(struct evl_multilevel_queue *q)
return thread;
}
struct evl_thread *
evl_lookup_schedq(struct evl_multilevel_queue *q, int prio)
{
struct list_head *head;
int idx;
idx = get_qindex(q, prio);
head = q->heads + idx;
if (list_empty(head))
return NULL;
return list_first_entry(head, struct evl_thread, rq_next);
}
static inline void enter_inband(struct evl_thread *root)
{
#ifdef CONFIG_EVL_WATCHDOG
......
Markdown is supported
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