summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/clockgettod.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-16 17:36:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-16 17:36:01 +0000
commit3d66dfc1cb98974df47bf4735291a674d34038bc (patch)
tree23d592a42aa1a333463855389a9a6a0151a3f704 /cpukit/rtems/src/clockgettod.c
parent2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-3d66dfc1cb98974df47bf4735291a674d34038bc.tar.bz2
2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/__times.c, posix/src/adjtime.c, posix/src/clockgetres.c, posix/src/sysconf.c, rtems/src/clockgettickspersecond.c, rtems/src/clockgettod.c, rtems/src/clockset.c, rtems/src/clocktodvalidate.c, score/src/timespecfromticks.c, score/src/timespectoticks.c, score/src/ts64toticks.c: More case converted to use configuration table entry not _TOD_Microseconds_per_tick.
Diffstat (limited to 'cpukit/rtems/src/clockgettod.c')
-rw-r--r--cpukit/rtems/src/clockgettod.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/rtems/src/clockgettod.c b/cpukit/rtems/src/clockgettod.c
index 9347d797ee..128fd3480e 100644
--- a/cpukit/rtems/src/clockgettod.c
+++ b/cpukit/rtems/src/clockgettod.c
@@ -16,6 +16,7 @@
#endif
#include <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/clock.h>
#include <rtems/score/isr.h>
@@ -50,7 +51,8 @@ rtems_status_code rtems_clock_get_tod(
tmbuf->hour = time.tm_hour;
tmbuf->minute = time.tm_min;
tmbuf->second = time.tm_sec;
- tmbuf->ticks = now.tv_usec / _TOD_Microseconds_per_tick;
+ tmbuf->ticks = now.tv_usec /
+ rtems_configuration_get_microseconds_per_tick();
return RTEMS_SUCCESSFUL;
}