summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/watchdog.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-12-01 22:03:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-12-01 22:03:55 +0000
commit8d0b7d96439c8dcce6e3c1ab7ca732402f92a2c4 (patch)
tree7d9b73603be147f329e071327af47d9c26ac5d19 /cpukit/score/src/watchdog.c
parentAdded new synchronization algorithm. (diff)
downloadrtems-8d0b7d96439c8dcce6e3c1ab7ca732402f92a2c4.tar.bz2
Insert mode argument to _Watchdog_Insert removed. Now are watchdog timers
are automatically activated upon insertion.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/watchdog.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/cpukit/score/src/watchdog.c b/cpukit/score/src/watchdog.c
index b7963f5408..0f72bd3d5c 100644
--- a/cpukit/score/src/watchdog.c
+++ b/cpukit/score/src/watchdog.c
@@ -140,8 +140,7 @@ void _Watchdog_Adjust(
void _Watchdog_Insert(
Chain_Control *header,
- Watchdog_Control *the_watchdog,
- Watchdog_Insert_modes insert_mode
+ Watchdog_Control *the_watchdog
)
{
ISR_Level level;
@@ -174,10 +173,10 @@ restart:
delta_interval -= after->delta_interval;
/*
- * If you experience problems comment out the _ISR_Flash line. This
- * (3.2.0) is the first release with this critical section redesigned.
+ * If you experience problems comment out the _ISR_Flash line.
+ * 3.2.0 was the first release with this critical section redesigned.
* Under certain circumstances, the PREVIOUS critical section algorithm
- * used around this flash point allows interrupts to execute
+ * used around this flash point allowed interrupts to execute
* which violated the design assumptions. The critical section
* mechanism used here WAS redesigned to address this.
*/
@@ -195,8 +194,7 @@ restart:
}
}
- if ( insert_mode == WATCHDOG_ACTIVATE_NOW )
- _Watchdog_Activate( the_watchdog );
+ _Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;