diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-06 15:30:47 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-09 08:30:03 +0200 |
commit | 2256946e9c0bc452004521d7aeeb68b72f680f42 (patch) | |
tree | 1a46bee10c6e92482125405b902ab75bfd8fd5e9 /cpukit/score/src/coretodadjust.c | |
parent | score: Simplify _Timestamp_Add_to() (diff) | |
download | rtems-2256946e9c0bc452004521d7aeeb68b72f680f42.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/coretodadjust.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/coretodadjust.c b/cpukit/score/src/coretodadjust.c index 5996565e5c..f493a40b9d 100644 --- a/cpukit/score/src/coretodadjust.c +++ b/cpukit/score/src/coretodadjust.c @@ -21,11 +21,11 @@ #include <rtems/score/todimpl.h> void _TOD_Adjust( - const Timestamp_Control *delta + const struct timespec *delta ) { - Timestamp_Control tod; - ISR_lock_Context lock_context; + ISR_lock_Context lock_context; + struct timespec tod; /* * Currently, RTEMS does the adjustment in one movement. @@ -38,7 +38,7 @@ void _TOD_Adjust( _TOD_Lock(); _TOD_Acquire( &lock_context ); _TOD_Get( &tod ); - _Timestamp_Add_to( &tod, delta ); + _Timespec_Add_to( &tod, delta ); _TOD_Set( &tod, &lock_context ); _TOD_Unlock(); } |