summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/schedulerpriorityimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-04 10:56:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-15 08:37:11 +0200
commite1598a616db1e9dadfd74abeb20b1f1ec5daaa7f (patch)
tree0aabc512f4beb2b30eba7885926d06a878988855 /cpukit/score/include/rtems/score/schedulerpriorityimpl.h
parentscore: Add and use RTEMS_ZERO_LENGTH_ARRAY (diff)
downloadrtems-e1598a616db1e9dadfd74abeb20b1f1ec5daaa7f.tar.bz2
score: Static scheduler configuration
Do not allocate the scheduler control structures from the workspace. This is a preparation step for configuration of clustered/partitioned schedulers on SMP.
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulerpriorityimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/schedulerpriorityimpl.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/cpukit/score/include/rtems/score/schedulerpriorityimpl.h b/cpukit/score/include/rtems/score/schedulerpriorityimpl.h
index 7861df5c90..bdd7e6fc5f 100644
--- a/cpukit/score/include/rtems/score/schedulerpriorityimpl.h
+++ b/cpukit/score/include/rtems/score/schedulerpriorityimpl.h
@@ -35,10 +35,10 @@ extern "C" {
*/
/**@{**/
-RTEMS_INLINE_ROUTINE Scheduler_priority_Control *
- _Scheduler_priority_Self_from_base( Scheduler_Control *scheduler_base )
+RTEMS_INLINE_ROUTINE Scheduler_priority_Context *
+ _Scheduler_priority_Get_context( const Scheduler_Control *scheduler )
{
- return (Scheduler_priority_Control *) scheduler_base->information;
+ return (Scheduler_priority_Context *) scheduler->context;
}
/**
@@ -134,14 +134,14 @@ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_extract(
}
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Extract_body(
- Scheduler_Control *scheduler_base,
- Thread_Control *the_thread
+ const Scheduler_Control *scheduler,
+ Thread_Control *the_thread
)
{
- Scheduler_priority_Control *scheduler =
- _Scheduler_priority_Self_from_base( scheduler_base );
+ Scheduler_priority_Context *context =
+ _Scheduler_priority_Get_context( scheduler );
- _Scheduler_priority_Ready_queue_extract( the_thread, &scheduler->Bit_map );
+ _Scheduler_priority_Ready_queue_extract( the_thread, &context->Bit_map );
}
/**
@@ -193,16 +193,16 @@ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_requeue(
* for priority-based scheduling.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(
- Scheduler_Control *scheduler_base,
- Thread_Control *the_thread,
- bool force_dispatch
+ const Scheduler_Control *scheduler,
+ Thread_Control *the_thread,
+ bool force_dispatch
)
{
- Scheduler_priority_Control *scheduler =
- _Scheduler_priority_Self_from_base( scheduler_base );
+ Scheduler_priority_Context *context =
+ _Scheduler_priority_Get_context( scheduler );
Thread_Control *heir = _Scheduler_priority_Ready_queue_first(
- &scheduler->Bit_map,
- &scheduler->Ready[ 0 ]
+ &context->Bit_map,
+ &context->Ready[ 0 ]
);
( void ) the_thread;