summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-02 21:51:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-02 21:51:52 +0000
commitf6e09342eea83a34edeb71a140c988a818053a32 (patch)
treee95c73dd531486201f9285b7deac1d4627cbf5d6 /cpukit/score
parent2007-04-02 Jennifer Averett <jennifer.averrett@oarcorp.com> (diff)
downloadrtems-f6e09342eea83a34edeb71a140c988a818053a32.tar.bz2
2007-04-02 Joel Sherrill <joel@OARcorp.com>
* 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.
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/include/rtems/score/tod.h11
-rw-r--r--cpukit/score/inline/rtems/score/tod.inl4
-rw-r--r--cpukit/score/src/coretod.c9
3 files changed, 2 insertions, 22 deletions
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();
}