diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-12-05 17:56:19 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-12-05 18:07:04 +0100 |
commit | 038bc6e775462e762adbfbba9979ad1604a59e1c (patch) | |
tree | ae9fbe1c223be8ab0d434331582e587e5cfa3187 /cpukit | |
parent | dosfs: Cluster write optimization (diff) | |
download | rtems-038bc6e775462e762adbfbba9979ad1604a59e1c.tar.bz2 |
score: Critical fix for timer server
Under certain conditions it is possible that a call to
_Watchdog_Adjust_to_chain() happens with a unit parameter value of zero
(for example sptests/spintrcritical17). Remove superfluous checks that
prevent an adjust to a chain of a watchdog chain which first element has
a delta zero value.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/score/src/watchdogadjusttochain.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cpukit/score/src/watchdogadjusttochain.c b/cpukit/score/src/watchdogadjusttochain.c index 3b8684a978..902d9de380 100644 --- a/cpukit/score/src/watchdogadjusttochain.c +++ b/cpukit/score/src/watchdogadjusttochain.c @@ -33,16 +33,9 @@ void _Watchdog_Adjust_to_chain( ISR_Level level; Watchdog_Control *first; - if ( units <= 0 ) { - return; - } - _ISR_Disable( level ); while ( 1 ) { - if ( units <= 0 ) { - break; - } if ( _Chain_Is_empty( header ) ) { break; } |