From fc054cabb5bed1dfd99a3fa96297ba3293dd9f1d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 4 Apr 2007 13:54:10 +0000 Subject: 2007-04-04 Joel Sherrill * score/Makefile.am, score/include/rtems/score/tod.h, score/inline/rtems/score/tod.inl: Make _TOD_Tickle_ticks a real non-inlined routine. It should only be used once so there is little advantage to inlining it. * score/src/coretodtickle.c: New file. --- cpukit/score/inline/rtems/score/tod.inl | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'cpukit/score/inline') diff --git a/cpukit/score/inline/rtems/score/tod.inl b/cpukit/score/inline/rtems/score/tod.inl index f132a0723d..10a370f7f2 100644 --- a/cpukit/score/inline/rtems/score/tod.inl +++ b/cpukit/score/inline/rtems/score/tod.inl @@ -54,35 +54,6 @@ RTEMS_INLINE_ROUTINE uint32_t _TOD_Add_timespec( return seconds; } -/** - * This routine increments the ticks field of the current time of - * day at each clock tick. - */ - -RTEMS_INLINE_ROUTINE void _TOD_Tickle_ticks( void ) -{ - struct timespec tick; - uint32_t seconds; - - /* Convert the tick quantum to a timespec */ - tick.tv_nsec = _TOD_Microseconds_per_tick * 1000; - tick.tv_sec = 0; - - /* Update the counter of ticks since boot */ - _Watchdog_Ticks_since_boot += 1; - - /* Update the timespec format uptime */ - (void) _TOD_Add_timespec( &_TOD_Uptime, &tick ); - /* we do not care how much the uptime changed */ - - /* Update the timespec format TOD */ - seconds = _TOD_Add_timespec( &_TOD_Now, &tick ); - while ( seconds ) { - _Watchdog_Tickle_seconds(); - seconds--; - } -} - /** * This routine deactivates updating of the current time of day. */ -- cgit v1.2.3