summaryrefslogtreecommitdiffstats
path: root/cpukit/score/macros/rtems/score/watchdog.inl
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-12-20 15:39:19 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-12-20 15:39:19 +0000
commit5c491aef41558df022032b543d826ef4e49493b5 (patch)
tree248c4d31610a83b98c65dc26fb6a9b54b9db77e1 /cpukit/score/macros/rtems/score/watchdog.inl
parentinitial history lost in disk crash (diff)
downloadrtems-5c491aef41558df022032b543d826ef4e49493b5.tar.bz2
changes remerged after lost in disk crash -- recovered from snapshot, partially recovered working tree, etc
Diffstat (limited to '')
-rw-r--r--cpukit/score/macros/rtems/score/watchdog.inl21
1 files changed, 9 insertions, 12 deletions
diff --git a/cpukit/score/macros/rtems/score/watchdog.inl b/cpukit/score/macros/rtems/score/watchdog.inl
index a8a061b144..d24224f93d 100644
--- a/cpukit/score/macros/rtems/score/watchdog.inl
+++ b/cpukit/score/macros/rtems/score/watchdog.inl
@@ -84,12 +84,11 @@
*
*/
-#define _Watchdog_Insert_ticks( _the_watchdog, _units, _insert_mode ) \
- { \
+#define _Watchdog_Insert_ticks( _the_watchdog, _units ) \
+ do { \
(_the_watchdog)->initial = (_units); \
- _Watchdog_Insert( &_Watchdog_Ticks_chain, \
- (_the_watchdog), (_insert_mode) ); \
- }
+ _Watchdog_Insert( &_Watchdog_Ticks_chain, (_the_watchdog) ); \
+ } while ( 0 )
/*PAGE
*
@@ -97,12 +96,11 @@
*
*/
-#define _Watchdog_Insert_seconds( _the_watchdog, _units, _insert_mode ) \
- { \
+#define _Watchdog_Insert_seconds( _the_watchdog, _units ) \
+ do { \
(_the_watchdog)->initial = (_units); \
- _Watchdog_Insert( &_Watchdog_Seconds_chain, \
- (_the_watchdog), (_insert_mode) ); \
- }
+ _Watchdog_Insert( &_Watchdog_Seconds_chain, (_the_watchdog) ); \
+ } while ( 0 )
/*PAGE
*
@@ -131,8 +129,7 @@
#define _Watchdog_Reset( _the_watchdog ) \
{ \
(void) _Watchdog_Remove( (_the_watchdog) ); \
- _Watchdog_Insert( &_Watchdog_Ticks_chain, \
- (_the_watchdog), WATCHDOG_ACTIVATE_NOW ); \
+ _Watchdog_Insert( &_Watchdog_Ticks_chain, (_the_watchdog) ); \
}
/*PAGE