summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulerstrongapa.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/schedulerstrongapa.c')
-rw-r--r--cpukit/score/src/schedulerstrongapa.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/cpukit/score/src/schedulerstrongapa.c b/cpukit/score/src/schedulerstrongapa.c
index 14c238e550..5d7c7f7a1d 100644
--- a/cpukit/score/src/schedulerstrongapa.c
+++ b/cpukit/score/src/schedulerstrongapa.c
@@ -173,23 +173,22 @@ void _Scheduler_strong_APA_Initialize( const Scheduler_Control *scheduler )
void _Scheduler_strong_APA_Node_initialize(
const Scheduler_Control *scheduler,
+ Scheduler_Node *node,
Thread_Control *the_thread,
Priority_Control priority
)
{
Scheduler_Context *context;
Scheduler_strong_APA_Context *self;
- Scheduler_strong_APA_Node *node;
+ Scheduler_strong_APA_Node *the_node;
+
+ the_node = _Scheduler_strong_APA_Node_downcast( node );
+ _Scheduler_SMP_Node_initialize( &the_node->Base, the_thread, priority );
context = _Scheduler_Get_context( scheduler );
self = _Scheduler_strong_APA_Get_self( context );
- node = _Scheduler_strong_APA_Node_downcast(
- _Scheduler_Thread_get_own_node( the_thread )
- );
-
- _Scheduler_SMP_Node_initialize( &node->Base, the_thread, priority );
_Scheduler_priority_Ready_queue_update(
- &node->Ready_queue,
+ &the_node->Ready_queue,
priority,
&self->Bit_map,
&self->Ready[ 0 ]