summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-01 22:35:07 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-01 22:35:07 +0000
commit2e2cf92151ccd16ca915e3dbcf043180d4870fb4 (patch)
treeace3d8cc4a2f309b3987d419ad68abca0e627b85 /cpukit
parent2002-07-01 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-2e2cf92151ccd16ca915e3dbcf043180d4870fb4.tar.bz2
2002-07-01 Joel Sherrill <joel@OARcorp.com>
* src/__times.c: Corrected from previous attempt to cleanup.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/ChangeLog4
-rw-r--r--cpukit/libcsupport/src/__times.c9
2 files changed, 11 insertions, 2 deletions
diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog
index 2a4b757fe3..fbfdd602f1 100644
--- a/cpukit/libcsupport/ChangeLog
+++ b/cpukit/libcsupport/ChangeLog
@@ -1,4 +1,8 @@
+2002-07-01 Joel Sherrill <joel@OARcorp.com>
+
+ * src/__times.c: Corrected from previous attempt to cleanup.
+
2002-07-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove RTEMS_PROJECT_ROOT.
diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c
index 3b23f3764a..7c06a879f1 100644
--- a/cpukit/libcsupport/src/__times.c
+++ b/cpukit/libcsupport/src/__times.c
@@ -27,8 +27,7 @@ clock_t _times(
struct tms *ptms
)
{
- rtems_status_code status;
- rtems_interval ticks;
+ rtems_interval ticks;
if ( !ptms ) {
errno = EFAULT;
@@ -36,6 +35,12 @@ clock_t _times(
}
/*
+ * This call does not depend on TOD being initialized and can't fail.
+ */
+
+ (void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &ticks );
+
+ /*
* RTEMS technically has no notion of system versus user time
* since there is no separation of OS from application tasks.
* But we can at least make a distinction between the number