diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-14 16:36:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-03 10:00:55 +0100 |
commit | 6c678557906cbbe73af1691e90e52911b2d00223 (patch) | |
tree | e4b824e5e9b5f6494df6001ba0d585818f60fcc5 /cpukit/posix/src/ptimer.c | |
parent | Optional POSIX Semaphore initialization (diff) | |
download | rtems-6c678557906cbbe73af1691e90e52911b2d00223.tar.bz2 |
Optional POSIX Timer initialization
Update #2408.
Diffstat (limited to 'cpukit/posix/src/ptimer.c')
-rw-r--r-- | cpukit/posix/src/ptimer.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/posix/src/ptimer.c b/cpukit/posix/src/ptimer.c index a1e06373b8..810112ac95 100644 --- a/cpukit/posix/src/ptimer.c +++ b/cpukit/posix/src/ptimer.c @@ -33,6 +33,7 @@ /************************************/ #include <unistd.h> +#include <rtems/sysinit.h> #include <rtems/rtems/status.h> #include <rtems/rtems/types.h> #include <rtems/rtems/timer.h> @@ -44,6 +45,8 @@ #include <rtems/posix/timerimpl.h> +Objects_Information _POSIX_Timer_Information; + /* * _POSIX_Timer_Manager_initialization * @@ -53,7 +56,7 @@ * the timers are stored */ -void _POSIX_Timer_Manager_initialization(void) +static void _POSIX_Timer_Manager_initialization(void) { _Objects_Initialize_information( &_POSIX_Timer_Information, /* object information table */ @@ -72,3 +75,9 @@ void _POSIX_Timer_Manager_initialization(void) #endif ); } + +RTEMS_SYSINIT_ITEM( + _POSIX_Timer_Manager_initialization, + RTEMS_SYSINIT_POSIX_TIMER, + RTEMS_SYSINIT_ORDER_MIDDLE +); |