diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-28 14:42:12 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-28 14:42:12 +0000 |
commit | 3a42e6fd104c3544a677ffbbeda2fd59e1bbb100 (patch) | |
tree | 1fffb6c96058801bb8bdf1723a198d705e40fe91 /cpukit/score/src/ts64getnanoseconds.c | |
parent | Housekeeping. (diff) | |
download | rtems-3a42e6fd104c3544a677ffbbeda2fd59e1bbb100.tar.bz2 |
2011-09-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1914/cpukit
* score/src/timespecgreaterthan.c, score/src/ts64greaterthan.c:
Removed files.
* score/Makefile.am: Reflect changes above.
* score/include/rtems/score/timespec.h,
score/include/rtems/score/timestamp.h,
score/include/rtems/score/timestamp64.h, score/src/ts64addto.c,
score/src/ts64divide.c, score/src/ts64dividebyinteger.c,
score/src/ts64equalto.c, score/src/ts64getnanoseconds.c,
score/src/ts64getseconds.c, score/src/ts64lessthan.c,
score/src/ts64set.c, score/src/ts64settozero.c,
score/src/ts64subtract.c, score/src/ts64toticks.c,
score/src/ts64totimespec.c: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC,
CPU_TIMESTAMP_USE_INT64, and CPU_TIMESTAMP_USE_INT64_INLINE. Removed
copy and paste.
Diffstat (limited to 'cpukit/score/src/ts64getnanoseconds.c')
-rw-r--r-- | cpukit/score/src/ts64getnanoseconds.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cpukit/score/src/ts64getnanoseconds.c b/cpukit/score/src/ts64getnanoseconds.c index f9d57a9ab1..6ab9b47892 100644 --- a/cpukit/score/src/ts64getnanoseconds.c +++ b/cpukit/score/src/ts64getnanoseconds.c @@ -17,17 +17,13 @@ #include "config.h" #endif -#include <sys/types.h> - -#include <rtems/system.h> #include <rtems/score/timestamp.h> -#if defined(CPU_RTEMS_SCORE_TIMESTAMP_IS_INT64) && \ - !defined(CPU_RTEMS_SCORE_TIMESTAMP_INT64_INLINE) +#if CPU_TIMESTAMP_USE_INT64 == TRUE uint32_t _Timestamp64_Get_nanoseconds( - Timestamp64_Control *_time + const Timestamp64_Control *_time ) { - return *(_time) % 1000000000; + _Timestamp64_implementation_Get_nanoseconds( _time ); } #endif |