diff options
Diffstat (limited to 'cpukit/score/src/watchdogadjusttochain.c')
-rw-r--r-- | cpukit/score/src/watchdogadjusttochain.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cpukit/score/src/watchdogadjusttochain.c b/cpukit/score/src/watchdogadjusttochain.c index 1cddcbc637..1926656ca3 100644 --- a/cpukit/score/src/watchdogadjusttochain.c +++ b/cpukit/score/src/watchdogadjusttochain.c @@ -18,14 +18,13 @@ #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_Adjust_to_chain( - Chain_Control *header, - Watchdog_Interval units_arg, - Chain_Control *to_fire + Watchdog_Header *header, + Watchdog_Interval units_arg, + Chain_Control *to_fire ) { @@ -36,7 +35,7 @@ void _Watchdog_Adjust_to_chain( _ISR_Disable( level ); while ( 1 ) { - if ( _Chain_Is_empty( header ) ) { + if ( _Watchdog_Is_empty( header ) ) { break; } first = _Watchdog_First( header ); @@ -63,7 +62,7 @@ void _Watchdog_Adjust_to_chain( _ISR_Flash( level ); - if ( _Chain_Is_empty( header ) ) + if ( _Watchdog_Is_empty( header ) ) break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) |