From f6e09342eea83a34edeb71a140c988a818053a32 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 2 Apr 2007 21:51:52 +0000 Subject: 2007-04-02 Joel Sherrill * posix/include/rtems/posix/timer.h, posix/src/alarm.c, posix/src/posixtimespectointerval.c, posix/src/ptimer1.c, posix/src/sysconf.c, posix/src/ualarm.c, rtems/src/clockget.c, rtems/src/clocktodvalidate.c, score/include/rtems/score/tod.h, score/inline/rtems/score/tod.inl, score/src/coretod.c: Eliminate TOD_Ticks_per_second variable. --- cpukit/score/include/rtems/score/tod.h | 11 ----------- cpukit/score/inline/rtems/score/tod.inl | 4 +--- cpukit/score/src/coretod.c | 9 +-------- 3 files changed, 2 insertions(+), 22 deletions(-) (limited to 'cpukit/score') diff --git a/cpukit/score/include/rtems/score/tod.h b/cpukit/score/include/rtems/score/tod.h index 8de4bb9304..8adbebd99e 100644 --- a/cpukit/score/include/rtems/score/tod.h +++ b/cpukit/score/include/rtems/score/tod.h @@ -145,17 +145,6 @@ SCORE_EXTERN Watchdog_Interval _TOD_Seconds_since_epoch; */ SCORE_EXTERN uint32_t _TOD_Microseconds_per_tick; -/** @brief Clock Ticks per Second - * - * The following contains the number of clock ticks per second. - * - * @note If one second is NOT evenly divisible by the number of microseconds - * per clock tick, this value will contain only the integer portion - * of the division. This means that the interval between clock ticks - * can be a source of error in the current time of day. - */ -SCORE_EXTERN uint32_t _TOD_Ticks_per_second; - /** @brief _TOD_Handler_initialization * * This routine performs the initialization necessary for this handler. diff --git a/cpukit/score/inline/rtems/score/tod.inl b/cpukit/score/inline/rtems/score/tod.inl index 733c4e1ede..f132a0723d 100644 --- a/cpukit/score/inline/rtems/score/tod.inl +++ b/cpukit/score/inline/rtems/score/tod.inl @@ -96,9 +96,7 @@ RTEMS_INLINE_ROUTINE void _TOD_Deactivate( void ) * This routine activates updating of the current time of day. */ -RTEMS_INLINE_ROUTINE void _TOD_Activate( - Watchdog_Interval ticks -) +RTEMS_INLINE_ROUTINE void _TOD_Activate() { /* XXX do we need something now that we are using timespec for TOD */ } diff --git a/cpukit/score/src/coretod.c b/cpukit/score/src/coretod.c index 142d8782bc..5c9c935483 100644 --- a/cpukit/score/src/coretod.c +++ b/cpukit/score/src/coretod.c @@ -51,14 +51,7 @@ void _TOD_Handler_initialization( /* Seconds since RTEMS Epoch (1988) */ _TOD_Seconds_since_epoch = 0; - /* Protect ourselves from a divide by zero fault */ - if ( microseconds_per_tick == 0 ) - _TOD_Ticks_per_second = 0; - else - _TOD_Ticks_per_second = - TOD_MICROSECONDS_PER_SECOND / microseconds_per_tick; - /* TOD has not been set */ _TOD_Is_set = FALSE; - _TOD_Activate( _TOD_Ticks_per_second ); + _TOD_Activate(); } -- cgit v1.2.3