Changeset fc054ca in rtems


Ignore:
Timestamp:
Apr 4, 2007, 1:54:10 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
b9bea9f7
Parents:
551db24
Message:

2007-04-04 Joel Sherrill <joel@…>

  • 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.
Location:
cpukit
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r551db24 rfc054ca  
     12007-04-04      Joel Sherrill <joel@OARcorp.com>
     2
     3        * score/Makefile.am, score/include/rtems/score/tod.h,
     4        score/inline/rtems/score/tod.inl: Make _TOD_Tickle_ticks a real
     5        non-inlined routine. It should only be used once so there is little
     6        advantage to inlining it.
     7        * score/src/coretodtickle.c: New file.
     8
    192007-04-02      Joel Sherrill <joel@OARcorp.com>
    210
  • cpukit/score/Makefile.am

    r551db24 rfc054ca  
    140140    src/threadqtimeout.c
    141141
     142## TIMESPEC_C_FILES
     143## libscore_a_SOURCES +=
     144
    142145## TOD_C_FILES
    143146libscore_a_SOURCES += src/coretod.c src/coretodset.c src/coretodget.c \
    144     src/coretodgetuptime.c
     147    src/coretodgetuptime.c src/coretodtickle.c
    145148
    146149## WATCHDOG_C_FILES
  • cpukit/score/include/rtems/score/tod.h

    r551db24 rfc054ca  
    185185);
    186186
     187/**
     188 *  This routine increments the ticks field of the current time of
     189 *  day at each clock tick.
     190 */
     191void _TOD_Tickle_ticks( void );
     192
    187193/** @brief TOD_MILLISECONDS_TO_MICROSECONDS
    188194 *
  • cpukit/score/inline/rtems/score/tod.inl

    r551db24 rfc054ca  
    5656
    5757/**
    58  *  This routine increments the ticks field of the current time of
    59  *  day at each clock tick.
    60  */
    61 
    62 RTEMS_INLINE_ROUTINE void _TOD_Tickle_ticks( void )
    63 {
    64   struct timespec tick;
    65   uint32_t        seconds;
    66 
    67   /* Convert the tick quantum to a timespec */
    68   tick.tv_nsec = _TOD_Microseconds_per_tick * 1000;
    69   tick.tv_sec  = 0;
    70 
    71   /* Update the counter of ticks since boot */
    72   _Watchdog_Ticks_since_boot += 1;
    73 
    74   /* Update the timespec format uptime */
    75   (void) _TOD_Add_timespec( &_TOD_Uptime, &tick );
    76   /* we do not care how much the uptime changed */
    77 
    78   /* Update the timespec format TOD */
    79   seconds = _TOD_Add_timespec( &_TOD_Now, &tick );
    80   while ( seconds ) {
    81     _Watchdog_Tickle_seconds();
    82     seconds--;
    83   }
    84 }
    85 
    86 /**
    8758 *  This routine deactivates updating of the current time of day.
    8859 */
Note: See TracChangeset for help on using the changeset viewer.