Changeset 2256946 in rtems for cpukit/posix/src/timersettime.c


Ignore:
Timestamp:
Oct 6, 2017, 1:30:47 PM (23 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
65012bf
Parents:
c0623a99
git-author:
Sebastian Huber <sebastian.huber@…> (10/06/17 13:30:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/09/17 06:30:03)
Message:

score: Use struct timespec for TOD

Use the timestamps only for uptime based values. Use struct timespec
for the absolute time values (TOD).

Update #2740.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/timersettime.c

    rc0623a99 r2256946  
    4040
    4141  /* Store the time when the timer was started again */
    42   _TOD_Get_as_timespec( &ptimer->time );
     42  _TOD_Get( &ptimer->time );
    4343
    4444  _Watchdog_Insert(
     
    133133  if (flags == TIMER_ABSTIME) {
    134134    struct timespec now;
    135     _TOD_Get_as_timespec( &now );
     135    _TOD_Get( &now );
    136136    /* Check for seconds in the past */
    137137    if ( _Timespec_Greater_than( &now, &normalize.it_value ) )
Note: See TracChangeset for help on using the changeset viewer.