summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-14 15:15:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 10:00:53 +0100
commitb377e3f6b70b5a5a09ac1dd77a450e4e5812cc42 (patch)
treed486652a680b9f6ed33dbc8fca44de8cd14dfea0 /cpukit/rtems/src
parentOptional Classic Dual-Ported Memory initialization (diff)
downloadrtems-b377e3f6b70b5a5a09ac1dd77a450e4e5812cc42.tar.bz2
Optional Classic Rate Monotonic initialization
Update #2408.
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r--cpukit/rtems/src/ratemon.c13
-rw-r--r--cpukit/rtems/src/ratemondata.c24
2 files changed, 10 insertions, 27 deletions
diff --git a/cpukit/rtems/src/ratemon.c b/cpukit/rtems/src/ratemon.c
index ad5083f75f..b0d248f18a 100644
--- a/cpukit/rtems/src/ratemon.c
+++ b/cpukit/rtems/src/ratemon.c
@@ -20,13 +20,14 @@
#include <rtems/system.h>
#include <rtems/config.h>
+#include <rtems/sysinit.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
-#include <rtems/score/isr.h>
#include <rtems/rtems/ratemonimpl.h>
-#include <rtems/score/thread.h>
-void _Rate_monotonic_Manager_initialization(void)
+Objects_Information _Rate_monotonic_Information;
+
+static void _Rate_monotonic_Manager_initialization(void)
{
_Objects_Initialize_information(
&_Rate_monotonic_Information, /* object information table */
@@ -44,3 +45,9 @@ void _Rate_monotonic_Manager_initialization(void)
#endif
);
}
+
+RTEMS_SYSINIT_ITEM(
+ _Rate_monotonic_Manager_initialization,
+ RTEMS_SYSINIT_CLASSIC_RATE_MONOTONIC,
+ RTEMS_SYSINIT_ORDER_MIDDLE
+);
diff --git a/cpukit/rtems/src/ratemondata.c b/cpukit/rtems/src/ratemondata.c
deleted file mode 100644
index cb4c9ca3b7..0000000000
--- a/cpukit/rtems/src/ratemondata.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file
- *
- * @brief Instantiate RTEMS Period Data
- * @ingroup ClassicRateMon
- */
-
-/*
- * COPYRIGHT (c) 1989-2007.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-/* instantiate RTEMS period data */
-#define RTEMS_RATEMON_EXTERN
-
-#include <rtems/rtems/ratemonimpl.h>