diff options
Diffstat (limited to 'cpukit/score/src/scheduleredfallocate.c')
-rw-r--r-- | cpukit/score/src/scheduleredfallocate.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/cpukit/score/src/scheduleredfallocate.c b/cpukit/score/src/scheduleredfallocate.c index 3dc9dd5070..f9aaa57b8a 100644 --- a/cpukit/score/src/scheduleredfallocate.c +++ b/cpukit/score/src/scheduleredfallocate.c @@ -18,24 +18,19 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/config.h> -#include <rtems/score/scheduler.h> -#include <rtems/score/scheduleredf.h> -#include <rtems/score/wkspace.h> +#include <rtems/score/scheduleredfimpl.h> bool _Scheduler_EDF_Allocate( const Scheduler_Control *scheduler, Thread_Control *the_thread ) { - Scheduler_EDF_Per_thread *schinfo = the_thread->scheduler_info; + Scheduler_EDF_Node *node = _Scheduler_EDF_Node_get( the_thread ); (void) scheduler; - schinfo = (Scheduler_EDF_Per_thread *)(the_thread->scheduler_info); - schinfo->thread = the_thread; - schinfo->queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN; + node->thread = the_thread; + node->queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN; return true; } |