Changeset 842005e4 in rtems


Ignore:
Timestamp:
Jul 29, 2016, 5:13:41 PM (4 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
5, master
Children:
3d3ad4dc
Parents:
f383f4bf
Message:

posix: nanosleep: optimize away a time conversion

updates #2732

File:
1 edited

Legend:

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

    rf383f4bf r842005e4  
    202202    if ( err != 0 )
    203203      return EINVAL;
    204     _Timespec_From_ticks( relative_interval, &relative_ts );
    205     _Timespec_Add_to( &now, &relative_ts );
     204    _Timespec_Add_to( &now, rqtp );
    206205    ticks = _Watchdog_Ticks_from_timespec( &now );
    207206    err = nanosleep_helper( ticks, relative_interval, rmtp, WATCHDOG_ABSOLUTE );
Note: See TracChangeset for help on using the changeset viewer.