[rtems commit] score: Add SMP support to _Watchdog_Report_chain()

Sebastian Huber sebh at rtems.org
Tue Aug 27 08:44:49 UTC 2013


Module:    rtems
Branch:    master
Commit:    a4c3e717a55733c2dba08acae8435f4fdc8ec31f
Changeset: http://git.rtems.org/rtems/commit/?id=a4c3e717a55733c2dba08acae8435f4fdc8ec31f

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Aug 26 17:38:15 2013 +0200

score: Add SMP support to _Watchdog_Report_chain()

---

 cpukit/score/src/watchdogreportchain.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/cpukit/score/src/watchdogreportchain.c b/cpukit/score/src/watchdogreportchain.c
index b490f79..0f6da0b 100644
--- a/cpukit/score/src/watchdogreportchain.c
+++ b/cpukit/score/src/watchdogreportchain.c
@@ -17,9 +17,9 @@
 #include "config.h"
 #endif
 
-#include <rtems/system.h>
 #include <rtems/score/watchdogimpl.h>
 #include <rtems/score/isr.h>
+#include <rtems/score/threaddispatch.h>
 #include <rtems/bspIo.h>
 
 void _Watchdog_Report_chain(
@@ -30,6 +30,7 @@ void _Watchdog_Report_chain(
   ISR_Level          level;
   Chain_Node        *node;
 
+  _Thread_Disable_dispatch();
   _ISR_Disable( level );
     printk( "Watchdog Chain: %s %p\n", name, header );
     if ( !_Chain_Is_empty( header ) ) {
@@ -46,4 +47,5 @@ void _Watchdog_Report_chain(
       printk( "Chain is empty\n" );
     }
   _ISR_Enable( level );
+  _Thread_Enable_dispatch();
 }




More information about the vc mailing list