From 3a42e6fd104c3544a677ffbbeda2fd59e1bbb100 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 28 Sep 2011 14:42:12 +0000 Subject: 2011-09-28 Sebastian Huber 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. --- cpukit/score/src/ts64getseconds.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'cpukit/score/src/ts64getseconds.c') diff --git a/cpukit/score/src/ts64getseconds.c b/cpukit/score/src/ts64getseconds.c index f459ee07a5..54db036bcc 100644 --- a/cpukit/score/src/ts64getseconds.c +++ b/cpukit/score/src/ts64getseconds.c @@ -17,17 +17,13 @@ #include "config.h" #endif -#include - -#include #include -#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_seconds( - Timestamp64_Control *_time + const Timestamp64_Control *_time ) { - return *(_time) / 1000000000; + _Timestamp64_implementation_Get_seconds( _time ); } #endif -- cgit v1.2.3