summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/watchdogtick.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/watchdogtick.c')
-rw-r--r--cpukit/score/src/watchdogtick.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/watchdogtick.c b/cpukit/score/src/watchdogtick.c
index b9bc3f7a9c..cb68ea2f02 100644
--- a/cpukit/score/src/watchdogtick.c
+++ b/cpukit/score/src/watchdogtick.c
@@ -12,8 +12,9 @@
* http://www.rtems.org/license/LICENSE.
*/
+#include <rtems/score/assert.h>
#include <rtems/score/schedulerimpl.h>
-#include <rtems/score/threadimpl.h>
+#include <rtems/score/threaddispatch.h>
#include <rtems/score/todimpl.h>
#include <rtems/score/watchdogimpl.h>
@@ -23,12 +24,11 @@
void _Watchdog_Tick( void )
{
+ _Assert( !_Thread_Dispatch_is_enabled() );
+
_TOD_Tickle_ticks();
_Watchdog_Tickle_ticks();
_Scheduler_Tick();
-
- if ( _Thread_Dispatch_is_enabled() )
- _Thread_Dispatch();
}