summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-11-25 13:24:26 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-11-25 13:24:26 +0000
commit5c4e0c5947d7b9338842e2b58292678678e1144a (patch)
tree662fa3cf319ec9404dc9ea945aff4f8ad73445a2 /cpukit/score/inline/rtems/score
parent2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-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')
-rw-r--r--cpukit/score/inline/rtems/score/scheduler.inl14
-rw-r--r--cpukit/score/inline/rtems/score/schedulerpriority.inl12
2 files changed, 13 insertions, 13 deletions
diff --git a/cpukit/score/inline/rtems/score/scheduler.inl b/cpukit/score/inline/rtems/score/scheduler.inl
index 4a0f10a3f3..81290eb84a 100644
--- a/cpukit/score/inline/rtems/score/scheduler.inl
+++ b/cpukit/score/inline/rtems/score/scheduler.inl
@@ -51,7 +51,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Schedule(
Scheduler_Control *the_scheduler
)
{
- the_scheduler->operations.schedule( the_scheduler );
+ the_scheduler->Operations.schedule( the_scheduler );
}
/** @brief _Scheduler_Yield
@@ -63,7 +63,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Schedule(
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )
{
- _Scheduler.operations.yield( &_Scheduler );
+ _Scheduler.Operations.yield( &_Scheduler );
}
/** @brief _Scheduler_Block
@@ -78,7 +78,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Block(
Thread_Control *the_thread
)
{
- the_scheduler->operations.block( the_scheduler, the_thread );
+ the_scheduler->Operations.block( the_scheduler, the_thread );
}
/** @brief _Scheduler_Unblock
@@ -93,7 +93,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Unblock(
Thread_Control *the_thread
)
{
- the_scheduler->operations.unblock( the_scheduler, the_thread );
+ the_scheduler->Operations.unblock( the_scheduler, the_thread );
}
/** @brief _Scheduler_Thread_scheduler_allocate
@@ -106,7 +106,7 @@ RTEMS_INLINE_ROUTINE void* _Scheduler_Thread_scheduler_allocate(
)
{
return
- the_scheduler->operations.scheduler_allocate( the_scheduler, the_thread );
+ the_scheduler->Operations.scheduler_allocate( the_scheduler, the_thread );
}
/** @brief _Scheduler_Thread_scheduler_free
@@ -118,7 +118,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Thread_scheduler_free(
Thread_Control *the_thread
)
{
- return the_scheduler->operations.scheduler_free( the_scheduler, the_thread );
+ return the_scheduler->Operations.scheduler_free( the_scheduler, the_thread );
}
/** @brief _Scheduler_Thread_scheduler_update
@@ -130,7 +130,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Thread_scheduler_update(
Thread_Control *the_thread
)
{
- the_scheduler->operations.scheduler_update( the_scheduler, the_thread );
+ the_scheduler->Operations.scheduler_update( the_scheduler, the_thread );
}
/**@}*/
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
)
{