diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-13 19:29:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-14 07:19:53 +0200 |
commit | fb07f730c1dd400b6d2f79a5393ff5e3cdded73e (patch) | |
tree | 5dab6cb6049e3ec82afeb109345af064ed394344 /cpukit/score/src/coretodset.c | |
parent | bsps/riscv: Fix multiple definition (diff) | |
download | rtems-fb07f730c1dd400b6d2f79a5393ff5e3cdded73e.tar.bz2 |
score: Return status in _TOD_Set()
Update #3949.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/coretodset.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c index 94ecd0b322..ed840ece2b 100644 --- a/cpukit/score/src/coretodset.c +++ b/cpukit/score/src/coretodset.c @@ -22,7 +22,7 @@ #include <rtems/score/assert.h> #include <rtems/score/watchdogimpl.h> -bool _TOD_Set( +Status_Control _TOD_Set( const struct timespec *tod, ISR_lock_Context *lock_context ) @@ -31,14 +31,14 @@ bool _TOD_Set( uint64_t tod_as_ticks; uint32_t cpu_max; uint32_t cpu_index; - bool retval; + Status_Control status; _Assert( _TOD_Is_owner() ); - retval = _TOD_Hook_Run( TOD_ACTION_SET_CLOCK, tod ); - if ( retval == false ) { + status = _TOD_Hook_Run( TOD_ACTION_SET_CLOCK, tod ); + if ( status != STATUS_SUCCESSFUL ) { _TOD_Release( lock_context ); - return false; + return status; } timespec2bintime( tod, &tod_as_bintime ); @@ -75,5 +75,5 @@ bool _TOD_Set( _TOD.is_set = true; - return true; + return STATUS_SUCCESSFUL; } |