summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coretod.c
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/src/coretod.c
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/src/coretod.c')
-rw-r--r--cpukit/score/src/coretod.c9
1 files changed, 1 insertions, 8 deletions
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();
}