Changeset 41c4785 in rtems for cpukit/score/src/coretodset.c


Ignore:
Timestamp:
Aug 7, 2002, 3:03:52 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7a47bb5
Parents:
e336882
Message:

2002-08-07 Chris Johns <ccj@…>

  • src/coretodset.c: Correct calculation of ticks until next section boundary. It was incorrectly based upon current time not the time that is being set.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/coretodset.c

    re336882 r41c4785  
    5151
    5252  ticks_until_next_second = _TOD_Ticks_per_second;
    53   if ( ticks_until_next_second > _TOD_Current.ticks )
    54     ticks_until_next_second -= _TOD_Current.ticks;
     53  if ( ticks_until_next_second > the_tod->ticks )
     54    ticks_until_next_second -= the_tod->ticks;
    5555
    5656  _TOD_Current             = *the_tod;
Note: See TracChangeset for help on using the changeset viewer.