diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-04 10:56:36 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-15 08:37:11 +0200 |
commit | e1598a616db1e9dadfd74abeb20b1f1ec5daaa7f (patch) | |
tree | 0aabc512f4beb2b30eba7885926d06a878988855 /cpukit/score/src/schedulersimple.c | |
parent | score: Add and use RTEMS_ZERO_LENGTH_ARRAY (diff) | |
download | rtems-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/src/schedulersimple.c')
-rw-r--r-- | cpukit/score/src/schedulersimple.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/cpukit/score/src/schedulersimple.c b/cpukit/score/src/schedulersimple.c index b825b29014..38fb194f44 100644 --- a/cpukit/score/src/schedulersimple.c +++ b/cpukit/score/src/schedulersimple.c @@ -19,16 +19,13 @@ #include "config.h" #endif -#include <rtems/score/schedulersimple.h> +#include <rtems/score/schedulersimpleimpl.h> #include <rtems/score/chainimpl.h> -#include <rtems/score/wkspace.h> -void _Scheduler_simple_Initialize ( void ) +void _Scheduler_simple_Initialize( const Scheduler_Control *scheduler ) { - Scheduler_simple_Control *scheduler = - _Workspace_Allocate_or_fatal_error( sizeof( *scheduler ) ); + Scheduler_simple_Context *context = + _Scheduler_simple_Get_context( scheduler ); - _Chain_Initialize_empty( &scheduler->Ready ); - - _Scheduler.information = scheduler; + _Chain_Initialize_empty( &context->Ready ); } |