From 8a040fe4eeb9f7ba5c9f95f8abd45b9b6d5f7c4b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 19 May 2016 17:03:31 +0200 Subject: score: Use _RBTree_Insert_inline() Use _RBTree_Insert_inline() for priority thread queues. Update #2556. --- cpukit/score/src/threadq.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'cpukit/score/src/threadq.c') 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 ); -- cgit v1.2.3