diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-05-13 16:03:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-05-14 14:46:19 +0200 |
commit | beab7329fca655c93743fbb590d00bb4ea5a6d78 (patch) | |
tree | fbeb6b27f887b46a41f84acc64aecfce18686540 /cpukit/score/src/schedulerpriorityenqueuefirst.c | |
parent | score: Scheduler documentation (diff) | |
download | rtems-beab7329fca655c93743fbb590d00bb4ea5a6d78.tar.bz2 |
score: Introduce scheduler nodes
Rename scheduler per-thread information into scheduler nodes using
Scheduler_Node as the base type. Use inheritance for specialized
schedulers.
Move the scheduler specific states from the thread control block into
the scheduler node structure.
Validate the SMP scheduler node state transitions in case RTEMS_DEBUG is
defined.
Diffstat (limited to 'cpukit/score/src/schedulerpriorityenqueuefirst.c')
-rw-r--r-- | cpukit/score/src/schedulerpriorityenqueuefirst.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/schedulerpriorityenqueuefirst.c b/cpukit/score/src/schedulerpriorityenqueuefirst.c index 0d197065a0..1714fe57f0 100644 --- a/cpukit/score/src/schedulerpriorityenqueuefirst.c +++ b/cpukit/score/src/schedulerpriorityenqueuefirst.c @@ -27,9 +27,11 @@ void _Scheduler_priority_Enqueue_first( { Scheduler_priority_Context *context = _Scheduler_priority_Get_context( scheduler ); + Scheduler_priority_Node *node = _Scheduler_priority_Node_get( the_thread ); _Scheduler_priority_Ready_queue_enqueue_first( the_thread, + &node->Ready_queue, &context->Bit_map ); } |