diff options
Diffstat (limited to 'cpukit/score/src/watchdogtickle.c')
-rw-r--r-- | cpukit/score/src/watchdogtickle.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cpukit/score/src/watchdogtickle.c b/cpukit/score/src/watchdogtickle.c index 8e410a5399..8c1a3a74b9 100644 --- a/cpukit/score/src/watchdogtickle.c +++ b/cpukit/score/src/watchdogtickle.c @@ -18,12 +18,11 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/isr.h> #include <rtems/score/watchdogimpl.h> +#include <rtems/score/isrlevel.h> void _Watchdog_Tickle( - Chain_Control *header + Watchdog_Header *header ) { ISR_Level level; @@ -38,7 +37,7 @@ void _Watchdog_Tickle( _ISR_Disable( level ); - if ( _Chain_Is_empty( header ) ) + if ( _Watchdog_Is_empty( header ) ) goto leave; the_watchdog = _Watchdog_First( header ); @@ -110,7 +109,7 @@ void _Watchdog_Tickle( _ISR_Disable( level ); the_watchdog = _Watchdog_First( header ); - } while ( !_Chain_Is_empty( header ) && + } while ( !_Watchdog_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: |