summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulerpriorityunblock.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-10-10 14:50:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-02 10:05:41 +0100
commit72e0bdba4580072c33da09fcacbd3063dbc4f2c1 (patch)
treef2daa6386cdbef84266bb363bd6c26de610a146b /cpukit/score/src/schedulerpriorityunblock.c
parentscore: Pass scheduler node to block operation (diff)
downloadrtems-72e0bdba4580072c33da09fcacbd3063dbc4f2c1.tar.bz2
score: Pass scheduler node to unblock operation
Changed for consistency with other scheduler operations. Update #2556.
Diffstat (limited to 'cpukit/score/src/schedulerpriorityunblock.c')
-rw-r--r--cpukit/score/src/schedulerpriorityunblock.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/cpukit/score/src/schedulerpriorityunblock.c b/cpukit/score/src/schedulerpriorityunblock.c
index 7186103f2b..99d4310a4c 100644
--- a/cpukit/score/src/schedulerpriorityunblock.c
+++ b/cpukit/score/src/schedulerpriorityunblock.c
@@ -24,23 +24,24 @@
Scheduler_Void_or_thread _Scheduler_priority_Unblock (
const Scheduler_Control *scheduler,
- Thread_Control *the_thread
+ Thread_Control *the_thread,
+ Scheduler_Node *node
)
{
Scheduler_priority_Context *context;
- Scheduler_priority_Node *node;
+ Scheduler_priority_Node *the_node;
unsigned int priority;
bool prepend_it;
context = _Scheduler_priority_Get_context( scheduler );
- node = _Scheduler_priority_Thread_get_node( the_thread );
+ the_node = _Scheduler_priority_Node_downcast( node );
priority = (unsigned int )
- _Scheduler_Node_get_priority( &node->Base, &prepend_it );
+ _Scheduler_Node_get_priority( &the_node->Base, &prepend_it );
(void) prepend_it;
- if ( priority != node->Ready_queue.current_priority ) {
+ if ( priority != the_node->Ready_queue.current_priority ) {
_Scheduler_priority_Ready_queue_update(
- &node->Ready_queue,
+ &the_node->Ready_queue,
priority,
&context->Bit_map,
&context->Ready[ 0 ]
@@ -49,7 +50,7 @@ Scheduler_Void_or_thread _Scheduler_priority_Unblock (
_Scheduler_priority_Ready_queue_enqueue(
&the_thread->Object.Node,
- &node->Ready_queue,
+ &the_node->Ready_queue,
&context->Bit_map
);