Changeset 2256946 in rtems for cpukit/score/src/coretodadjust.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/score/src/coretodadjust.c

    rc0623a99 r2256946  
    2222
    2323void _TOD_Adjust(
    24   const Timestamp_Control *delta
     24  const struct timespec *delta
    2525)
    2626{
    27   Timestamp_Control tod;
    28   ISR_lock_Context  lock_context;
     27  ISR_lock_Context lock_context;
     28  struct timespec  tod;
    2929
    3030  /*
     
    3939  _TOD_Acquire( &lock_context );
    4040  _TOD_Get( &tod );
    41   _Timestamp_Add_to( &tod, delta );
     41  _Timespec_Add_to( &tod, delta );
    4242  _TOD_Set( &tod, &lock_context );
    4343  _TOD_Unlock();
Note: See TracChangeset for help on using the changeset viewer.