summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/ratemon.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-17 20:21:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-17 20:21:40 +0000
commitdb80f11c9c06e59dddc316566f3e0982b8195cc5 (patch)
treec16c0a2bef03dab039c22236a2c84605a0c05905 /cpukit/rtems/src/ratemon.c
parentAdd sim/m32c hack to work around build vs. host CC bugs. (diff)
downloadrtems-db80f11c9c06e59dddc316566f3e0982b8195cc5.tar.bz2
2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/Makefile.am, rtems/include/rtems/rtems/attr.h, rtems/include/rtems/rtems/barrier.h, rtems/include/rtems/rtems/dpmem.h, rtems/include/rtems/rtems/intr.h, rtems/include/rtems/rtems/message.h, rtems/include/rtems/rtems/part.h, rtems/include/rtems/rtems/ratemon.h, rtems/include/rtems/rtems/region.h, rtems/include/rtems/rtems/sem.h, rtems/include/rtems/rtems/tasks.h, rtems/include/rtems/rtems/timer.h, rtems/src/barrier.c, rtems/src/dpmem.c, rtems/src/msg.c, rtems/src/part.c, rtems/src/ratemon.c, rtems/src/region.c, rtems/src/rtemstimer.c, rtems/src/sem.c, rtems/src/tasks.c, sapi/src/rtemsapi.c: Convert manager initialization routines to directly pull parameters from configuration table. Eliminate empty routines sportted. * rtems/src/intr.c: Removed.
Diffstat (limited to 'cpukit/rtems/src/ratemon.c')
-rw-r--r--cpukit/rtems/src/ratemon.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/cpukit/rtems/src/ratemon.c b/cpukit/rtems/src/ratemon.c
index 647ee10e4a..4c71f5d99c 100644
--- a/cpukit/rtems/src/ratemon.c
+++ b/cpukit/rtems/src/ratemon.c
@@ -2,7 +2,7 @@
* Rate Monotonic Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,7 @@
#endif
#include <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
#include <rtems/score/isr.h>
@@ -31,8 +32,7 @@
* This routine initializes all Rate Monotonic Manager related
* data structures.
*
- * Input parameters:
- * maximum_periods - number of periods timers to initialize
+ * Input parameters: NONE
*
* Output parameters: NONE
*
@@ -40,22 +40,21 @@
* Handler.
*/
-void _Rate_monotonic_Manager_initialization(
- uint32_t maximum_periods
-)
+void _Rate_monotonic_Manager_initialization(void)
{
_Objects_Initialize_information(
- &_Rate_monotonic_Information, /* object information table */
- OBJECTS_CLASSIC_API, /* object API */
- OBJECTS_RTEMS_PERIODS, /* object class */
- maximum_periods, /* maximum objects of this class */
- sizeof( Rate_monotonic_Control ), /* size of this object's control block */
- FALSE, /* TRUE if the name is a string */
- RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */
+ &_Rate_monotonic_Information, /* object information table */
+ OBJECTS_CLASSIC_API, /* object API */
+ OBJECTS_RTEMS_PERIODS, /* object class */
+ Configuration_RTEMS_API.maximum_periods,
+ /* maximum objects of this class */
+ sizeof( Rate_monotonic_Control ),/* size of this object's control block */
+ FALSE, /* TRUE if the name is a string */
+ RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */
#if defined(RTEMS_MULTIPROCESSING)
,
- FALSE, /* TRUE if this is a global object class */
- NULL /* Proxy extraction support callout */
+ FALSE, /* TRUE if this is a global object class */
+ NULL /* Proxy extraction support callout */
#endif
);
}