diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-06-10 16:32:12 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-06-23 09:13:00 +0200 |
commit | 647b95df9fa324795f3398d0562d363fd7d5079f (patch) | |
tree | 432bcc5fbc68fd6d303d8d0d47c94a1fb4ea09ba /cpukit/score/include/rtems/score/schedulerprioritysmpimpl.h | |
parent | score: Collect scheduler related fields in TCB (diff) | |
download | rtems-647b95df9fa324795f3398d0562d363fd7d5079f.tar.bz2 |
score: Use chain nodes for ready queue support
This reduces the API to the minimum data structures to maximize the
re-usability.
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulerprioritysmpimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulerprioritysmpimpl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/score/include/rtems/score/schedulerprioritysmpimpl.h b/cpukit/score/include/rtems/score/schedulerprioritysmpimpl.h index a8196218c1..d3e2106f4b 100644 --- a/cpukit/score/include/rtems/score/schedulerprioritysmpimpl.h +++ b/cpukit/score/include/rtems/score/schedulerprioritysmpimpl.h @@ -69,7 +69,7 @@ static inline void _Scheduler_priority_SMP_Move_from_scheduled_to_ready( _Chain_Extract_unprotected( &scheduled_to_ready->Object.Node ); _Scheduler_priority_Ready_queue_enqueue_first( - scheduled_to_ready, + &scheduled_to_ready->Object.Node, &node->Ready_queue, &self->Bit_map ); @@ -86,13 +86,13 @@ static inline void _Scheduler_priority_SMP_Move_from_ready_to_scheduled( _Scheduler_priority_SMP_Node_get( ready_to_scheduled ); _Scheduler_priority_Ready_queue_extract( - ready_to_scheduled, + &ready_to_scheduled->Object.Node, &node->Ready_queue, &self->Bit_map ); _Scheduler_simple_Insert_priority_fifo( &self->Base.Scheduled, - ready_to_scheduled + &ready_to_scheduled->Object.Node ); } @@ -107,7 +107,7 @@ static inline void _Scheduler_priority_SMP_Insert_ready_lifo( _Scheduler_priority_SMP_Node_get( thread ); _Scheduler_priority_Ready_queue_enqueue( - thread, + &thread->Object.Node, &node->Ready_queue, &self->Bit_map ); @@ -124,7 +124,7 @@ static inline void _Scheduler_priority_SMP_Insert_ready_fifo( _Scheduler_priority_SMP_Node_get( thread ); _Scheduler_priority_Ready_queue_enqueue_first( - thread, + &thread->Object.Node, &node->Ready_queue, &self->Bit_map ); @@ -141,7 +141,7 @@ static inline void _Scheduler_priority_SMP_Extract_from_ready( _Scheduler_priority_SMP_Node_get( thread ); _Scheduler_priority_Ready_queue_extract( - thread, + &thread->Object.Node, &node->Ready_queue, &self->Bit_map ); |