From 3d66dfc1cb98974df47bf4735291a674d34038bc Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Dec 2008 17:36:01 +0000 Subject: 2008-12-16 Joel Sherrill * 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. --- cpukit/rtems/src/clockset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/rtems/src/clockset.c') diff --git a/cpukit/rtems/src/clockset.c b/cpukit/rtems/src/clockset.c index 1b1bbe8b04..30127cdc39 100644 --- a/cpukit/rtems/src/clockset.c +++ b/cpukit/rtems/src/clockset.c @@ -16,6 +16,7 @@ #endif #include +#include #include #include #include @@ -49,7 +50,7 @@ rtems_status_code rtems_clock_set( if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); newtime.tv_nsec = time_buffer->ticks * - (_TOD_Microseconds_per_tick * TOD_NANOSECONDS_PER_MICROSECOND); + rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); -- cgit v1.2.3