summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/Makefile.am2
-rw-r--r--cpukit/score/include/rtems/score/watchdogimpl.h39
-rw-r--r--cpukit/score/src/watchdogreport.c41
-rw-r--r--cpukit/score/src/watchdogreportchain.c51
4 files changed, 1 insertions, 132 deletions
diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am
index aeee4b6b32..ed69b9b84b 100644
--- a/cpukit/score/Makefile.am
+++ b/cpukit/score/Makefile.am
@@ -321,7 +321,7 @@ libscore_a_SOURCES += src/coretod.c src/coretodset.c src/coretodget.c \
## WATCHDOG_C_FILES
libscore_a_SOURCES += src/watchdog.c src/watchdogadjust.c \
src/watchdogadjusttochain.c src/watchdoginsert.c src/watchdogremove.c \
- src/watchdogtickle.c src/watchdogreport.c src/watchdogreportchain.c
+ src/watchdogtickle.c
## USEREXT_C_FILES
libscore_a_SOURCES += src/userextaddset.c \
diff --git a/cpukit/score/include/rtems/score/watchdogimpl.h b/cpukit/score/include/rtems/score/watchdogimpl.h
index 2709805e84..72b6b3b568 100644
--- a/cpukit/score/include/rtems/score/watchdogimpl.h
+++ b/cpukit/score/include/rtems/score/watchdogimpl.h
@@ -197,45 +197,6 @@ void _Watchdog_Tickle (
);
/**
- * @brief Report information on a single watchdog instance.
- *
- * This method prints a one line report on the watchdog instance
- * provided. The @a name may be used to identify the watchdog and
- * a space will be printed after @a name if it is not NULL.
- *
- * @param[in] name is a string to prefix the line with. If NULL,
- * nothing is printed.
- * @param[in] watch is the watchdog instance to be printed.
- *
- * @note This is a debug routine. It uses printk() and prudence should
- * exercised when using it.
- */
-void _Watchdog_Report(
- const char *name,
- Watchdog_Control *watch
-);
-
-/**
- * @brief Report information on a watchdog chain.
- *
- * This method prints report on the watchdog chain provided.
- * The @a name may be used to identify the watchdog chain and
- * a space will be printed after @a name if it is not NULL.
- *
- * @param[in] name is a string to prefix the line with. If NULL,
- * nothing is printed.
- * @param[in] header is the watchdog chain to be printed.
- *
- * @note This is a debug routine. It uses printk() and prudence should
- * exercised when using it. It also disables interrupts so the
- * chain can be traversed in a single atomic pass.
- */
-void _Watchdog_Report_chain(
- const char *name,
- Chain_Control *header
-);
-
-/**
* This routine initializes the specified watchdog. The watchdog is
* made inactive, the watchdog id and handler routine are set to the
* specified values.
diff --git a/cpukit/score/src/watchdogreport.c b/cpukit/score/src/watchdogreport.c
deleted file mode 100644
index 550be49a68..0000000000
--- a/cpukit/score/src/watchdogreport.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * @file watchdogreport.c
- *
- * @brief Report Information on a Single Watchdog Instance
- * @ingroup ScoreWatchdog
- */
-
-/*
- * COPYRIGHT (c) 1989-2008.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <rtems/system.h>
-#include <rtems/score/watchdogimpl.h>
-#include <rtems/bspIo.h>
-
-void _Watchdog_Report(
- const char *name,
- Watchdog_Control *watch
-)
-{
- printk(
- "%s%s%4d %5d %p %p 0x%08x %p\n",
- ((name) ? name : ""),
- ((name) ? " " : ""),
- watch->delta_interval,
- watch->initial,
- watch,
- watch->routine,
- watch->id,
- watch->user_data
- );
-}
diff --git a/cpukit/score/src/watchdogreportchain.c b/cpukit/score/src/watchdogreportchain.c
deleted file mode 100644
index edbc78197c..0000000000
--- a/cpukit/score/src/watchdogreportchain.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * @file
- *
- * @brief Report Information on a Watchdog Chain
- * @ingroup ScoreWatchdog
- */
-
-/* COPYRIGHT (c) 1989-2008.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <rtems/score/watchdogimpl.h>
-#include <rtems/score/isr.h>
-#include <rtems/score/threaddispatch.h>
-#include <rtems/bspIo.h>
-
-void _Watchdog_Report_chain(
- const char *name,
- Chain_Control *header
-)
-{
- 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 ) ) {
- for ( node = _Chain_First( header ) ;
- node != _Chain_Tail(header) ;
- node = node->next )
- {
- Watchdog_Control *watch = (Watchdog_Control *) node;
-
- _Watchdog_Report( NULL, watch );
- }
- printk( "== end of %s \n", name );
- } else {
- printk( "Chain is empty\n" );
- }
- _ISR_Enable( level );
- _Thread_Enable_dispatch();
-}