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/scheduleredf.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/scheduleredf.c')
-rw-r--r-- | cpukit/score/src/scheduleredf.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/cpukit/score/src/scheduleredf.c b/cpukit/score/src/scheduleredf.c index 502a2a1d4a..4d1aa62d08 100644 --- a/cpukit/score/src/scheduleredf.c +++ b/cpukit/score/src/scheduleredf.c @@ -18,10 +18,7 @@ #include "config.h" #endif -#include <rtems/score/scheduleredf.h> -#include <rtems/score/schedulerimpl.h> -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> +#include <rtems/score/scheduleredfimpl.h> static int _Scheduler_EDF_RBTree_compare_function ( @@ -41,16 +38,14 @@ static int _Scheduler_EDF_RBTree_compare_function return (-1)*_Scheduler_EDF_Priority_compare(value1, value2); } -void _Scheduler_EDF_Initialize(void) +void _Scheduler_EDF_Initialize( const Scheduler_Control *scheduler ) { - Scheduler_EDF_Control *scheduler = - _Workspace_Allocate_or_fatal_error( sizeof( *scheduler ) ); + Scheduler_EDF_Context *context = + _Scheduler_EDF_Get_context( scheduler ); _RBTree_Initialize_empty( - &scheduler->Ready, + &context->Ready, _Scheduler_EDF_RBTree_compare_function, 0 ); - - _Scheduler.information = scheduler; } |