summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-08 11:32:13 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-12 13:25:41 +0100
commit98c01a53c808a33e63d0e52490cc1c10a9dd1038 (patch)
tree342dab10408723f92370dc9ff193da5d3802ff3e /cpukit/include
parentscore: Avoid include of <rtems/score/thread.h> (diff)
downloadrtems-98c01a53c808a33e63d0e52490cc1c10a9dd1038.tar.bz2
rtems: Avoid <rtems/score/timecounter.h> in API
Use a real function for rtems_clock_get_uptime_seconds(). Update #3598.
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/imfs.h1
-rw-r--r--cpukit/include/rtems/rtems/clock.h8
-rw-r--r--cpukit/include/rtems/rtems/types.h1
3 files changed, 3 insertions, 7 deletions
diff --git a/cpukit/include/rtems/imfs.h b/cpukit/include/rtems/imfs.h
index 3d2048afeb..e83209508c 100644
--- a/cpukit/include/rtems/imfs.h
+++ b/cpukit/include/rtems/imfs.h
@@ -21,6 +21,7 @@
#include <rtems/libio_.h>
#include <rtems/pipe.h>
+#include <rtems/score/timecounter.h>
/**
* @brief In-Memory File System Support.
diff --git a/cpukit/include/rtems/rtems/clock.h b/cpukit/include/rtems/rtems/clock.h
index da833eac48..f3f406d2e6 100644
--- a/cpukit/include/rtems/rtems/clock.h
+++ b/cpukit/include/rtems/rtems/clock.h
@@ -33,9 +33,6 @@
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
#include <rtems/config.h>
-#include <rtems/score/timecounterimpl.h>
-
-#include <sys/time.h> /* struct timeval */
/**
* @defgroup ClassicClock Clocks
@@ -265,10 +262,7 @@ void rtems_clock_get_uptime_timeval( struct timeval *uptime );
*
* @retval The system uptime in seconds.
*/
-RTEMS_INLINE_ROUTINE time_t rtems_clock_get_uptime_seconds( void )
-{
- return _Timecounter_Time_uptime - 1;
-}
+time_t rtems_clock_get_uptime_seconds( void );
/**
* @brief Returns the system uptime in nanoseconds.
diff --git a/cpukit/include/rtems/rtems/types.h b/cpukit/include/rtems/rtems/types.h
index 2028c427f0..13adf175a6 100644
--- a/cpukit/include/rtems/rtems/types.h
+++ b/cpukit/include/rtems/rtems/types.h
@@ -23,6 +23,7 @@
*/
#include <sys/_timespec.h>
+#include <sys/_timeval.h>
#include <stdint.h>
#include <rtems/score/heap.h>
#include <rtems/score/object.h>