Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Linux-Kernel
linux-evl
Commits
8a272917
Commit
8a272917
authored
Feb 06, 2021
by
Philippe Gerum
Browse files
evl/sched: remove useless lookup-by-prio helper
Signed-off-by:
Philippe Gerum
<
rpm@xenomai.org
>
parent
48a9426d
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/evl/sched/queue.h
View file @
8a272917
...
...
@@ -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
)
{
...
...
kernel/evl/sched/core.c
View file @
8a272917
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment