summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadq.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-19 17:03:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 16:11:02 +0200
commit8a040fe4eeb9f7ba5c9f95f8abd45b9b6d5f7c4b (patch)
tree9eae69fdf0cbda0635d6f2c9e13c04a50dab0742 /cpukit/score/src/threadq.c
parentscore: Add per scheduler instance maximum priority (diff)
downloadrtems-8a040fe4eeb9f7ba5c9f95f8abd45b9b6d5f7c4b.tar.bz2
score: Use _RBTree_Insert_inline()
Use _RBTree_Insert_inline() for priority thread queues. Update #2556.
Diffstat (limited to 'cpukit/score/src/threadq.c')
-rw-r--r--cpukit/score/src/threadq.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/cpukit/score/src/threadq.c b/cpukit/score/src/threadq.c
index b3ccbd6f4b..00d9cb13cf 100644
--- a/cpukit/score/src/threadq.c
+++ b/cpukit/score/src/threadq.c
@@ -58,27 +58,6 @@ RTEMS_STATIC_ASSERT(
#endif /* HAVE_STRUCT__THREAD_QUEUE_QUEUE */
-RBTree_Compare_result _Thread_queue_Compare_priority(
- const RBTree_Node *left,
- const RBTree_Node *right
-)
-{
- const Thread_Control *left_thread;
- const Thread_Control *right_thread;
- Priority_Control left_prio;
- Priority_Control right_prio;
-
- left_thread = THREAD_RBTREE_NODE_TO_THREAD( left );
- right_thread = THREAD_RBTREE_NODE_TO_THREAD( right );
- left_prio = left_thread->current_priority;
- right_prio = right_thread->current_priority;
-
- /*
- * SuperCore priorities use lower numbers to indicate greater importance.
- */
- return ( left_prio > right_prio ) - ( left_prio < right_prio );
-}
-
void _Thread_queue_Initialize( Thread_queue_Control *the_thread_queue )
{
_Thread_queue_Queue_initialize( &the_thread_queue->Queue );