summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coretodadjust.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-03 09:33:01 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-06 12:22:44 +0200
commit8abd175669a6ec2e5b46216947e68eaf4bd29cdf (patch)
treed80cc46a13d7036c72f096d5d3affe1e173c91c4 /cpukit/score/src/coretodadjust.c
parentscore: Move _Thread_Dispatch() (diff)
downloadrtems-8abd175669a6ec2e5b46216947e68eaf4bd29cdf.tar.bz2
score: Return status in _TOD_Adjust()
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/coretodadjust.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/score/src/coretodadjust.c b/cpukit/score/src/coretodadjust.c
index a746b0e004..90c99803e1 100644
--- a/cpukit/score/src/coretodadjust.c
+++ b/cpukit/score/src/coretodadjust.c
@@ -22,12 +22,13 @@
#include <rtems/score/todimpl.h>
-void _TOD_Adjust(
+Status_Control _TOD_Adjust(
const struct timespec *delta
)
{
ISR_lock_Context lock_context;
struct timespec tod;
+ Status_Control status;
/*
* Currently, RTEMS does the adjustment in one movement.
@@ -41,6 +42,8 @@ void _TOD_Adjust(
_TOD_Acquire( &lock_context );
_TOD_Get( &tod );
_Timespec_Add_to( &tod, delta );
- _TOD_Set( &tod, &lock_context );
+ status = _TOD_Set( &tod, &lock_context );
_TOD_Unlock();
+
+ return status;
}