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 /cpukit/score/inline/rtems | |
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 'cpukit/score/inline/rtems')
-rw-r--r-- | cpukit/score/inline/rtems/score/tod.inl | 6 | ||||
-rw-r--r-- | cpukit/score/inline/rtems/score/watchdog.inl | 16 |
2 files changed, 6 insertions, 16 deletions
diff --git a/cpukit/score/inline/rtems/score/tod.inl b/cpukit/score/inline/rtems/score/tod.inl index d2e26e2f2a..dce8aca426 100644 --- a/cpukit/score/inline/rtems/score/tod.inl +++ b/cpukit/score/inline/rtems/score/tod.inl @@ -61,11 +61,7 @@ STATIC INLINE void _TOD_Activate( Watchdog_Interval ticks ) { - _Watchdog_Insert_ticks( - &_TOD_Seconds_watchdog, - ticks, - WATCHDOG_ACTIVATE_NOW - ); + _Watchdog_Insert_ticks( &_TOD_Seconds_watchdog, ticks ); } #endif diff --git a/cpukit/score/inline/rtems/score/watchdog.inl b/cpukit/score/inline/rtems/score/watchdog.inl index bb7edb82ed..ae3717e102 100644 --- a/cpukit/score/inline/rtems/score/watchdog.inl +++ b/cpukit/score/inline/rtems/score/watchdog.inl @@ -115,14 +115,13 @@ STATIC INLINE void _Watchdog_Tickle_seconds( void ) STATIC INLINE void _Watchdog_Insert_ticks( Watchdog_Control *the_watchdog, - Watchdog_Interval units, - Watchdog_Insert_modes insert_mode + Watchdog_Interval units ) { the_watchdog->initial = units; - _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog, insert_mode ); + _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); } @@ -134,14 +133,13 @@ STATIC INLINE void _Watchdog_Insert_ticks( STATIC INLINE void _Watchdog_Insert_seconds( Watchdog_Control *the_watchdog, - Watchdog_Interval units, - Watchdog_Insert_modes insert_mode + Watchdog_Interval units ) { the_watchdog->initial = units; - _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog, insert_mode ); + _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); } @@ -190,11 +188,7 @@ STATIC INLINE void _Watchdog_Reset( (void) _Watchdog_Remove( the_watchdog ); - _Watchdog_Insert( - &_Watchdog_Ticks_chain, - the_watchdog, - WATCHDOG_ACTIVATE_NOW - ); + _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); } |