diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-11-25 13:24:26 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-11-25 13:24:26 +0000 |
commit | 5c4e0c5947d7b9338842e2b58292678678e1144a (patch) | |
tree | 662fa3cf319ec9404dc9ea945aff4f8ad73445a2 /cpukit/score/inline/rtems/score/schedulerpriority.inl | |
parent | 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-5c4e0c5947d7b9338842e2b58292678678e1144a.tar.bz2 |
2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* sapi/include/confdefs.h, score/include/rtems/score/scheduler.h,
score/inline/rtems/score/scheduler.inl,
score/inline/rtems/score/schedulerpriority.inl,
score/src/schedulerpriority.c,
score/src/schedulerprioritythreadschedulerallocate.c,
score/src/schedulerprioritythreadschedulerfree.c,
score/src/schedulerprioritythreadschedulerupdate.c,
score/src/schedulerpriorityyield.c: Added attribute unused. Renamed
types and fields to follow the Score naming conventions.
Diffstat (limited to 'cpukit/score/inline/rtems/score/schedulerpriority.inl')
-rw-r--r-- | cpukit/score/inline/rtems/score/schedulerpriority.inl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/score/inline/rtems/score/schedulerpriority.inl b/cpukit/score/inline/rtems/score/schedulerpriority.inl index 11ef2ea9f5..b35682fa67 100644 --- a/cpukit/score/inline/rtems/score/schedulerpriority.inl +++ b/cpukit/score/inline/rtems/score/schedulerpriority.inl @@ -34,17 +34,17 @@ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_initialize( Scheduler_Control *the_scheduler ) { - uint32_t index; + size_t index; /* allocate ready queue structures */ - the_scheduler->ready_queues.Priority = (Chain_Control *) + the_scheduler->Ready_queues.priority = (Chain_Control *) _Workspace_Allocate_or_fatal_error( - (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) + ((size_t) PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) ); /* initialize ready queue structures */ for( index=0; index <= PRIORITY_MAXIMUM; index++) - _Chain_Initialize_empty( &the_scheduler->ready_queues.Priority[index] ); + _Chain_Initialize_empty( &the_scheduler->Ready_queues.priority[index] ); } /* @@ -194,7 +194,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body( ) { _Thread_Heir = _Scheduler_priority_Ready_queue_first( - the_scheduler->ready_queues.Priority + the_scheduler->Ready_queues.priority ); } @@ -250,7 +250,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Block_body( */ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Unblock_body ( - Scheduler_Control *the_scheduler, + Scheduler_Control *the_scheduler __attribute__((unused)), Thread_Control *the_thread ) { |