diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-12-01 22:03:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-12-01 22:03:55 +0000 |
commit | 8d0b7d96439c8dcce6e3c1ab7ca732402f92a2c4 (patch) | |
tree | 7d9b73603be147f329e071327af47d9c26ac5d19 /c/src/exec/rtems/src/timer.c | |
parent | Added new synchronization algorithm. (diff) | |
download | rtems-8d0b7d96439c8dcce6e3c1ab7ca732402f92a2c4.tar.bz2 |
Insert mode argument to _Watchdog_Insert removed. Now are watchdog timers
are automatically activated upon insertion.
Diffstat (limited to 'c/src/exec/rtems/src/timer.c')
-rw-r--r-- | c/src/exec/rtems/src/timer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/c/src/exec/rtems/src/timer.c b/c/src/exec/rtems/src/timer.c index db37473500..6c3005ffbe 100644 --- a/c/src/exec/rtems/src/timer.c +++ b/c/src/exec/rtems/src/timer.c @@ -242,8 +242,7 @@ rtems_status_code rtems_timer_fire_after( (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_INTERVAL; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); - _Watchdog_Insert_ticks( &the_timer->Ticker, - ticks, WATCHDOG_ACTIVATE_NOW ); + _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } @@ -298,8 +297,10 @@ rtems_status_code rtems_timer_fire_when( (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); - _Watchdog_Insert_seconds( &the_timer->Ticker, - seconds - _TOD_Seconds_since_epoch, WATCHDOG_ACTIVATE_NOW ); + _Watchdog_Insert_seconds( + &the_timer->Ticker, + seconds - _TOD_Seconds_since_epoch + ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } |