diff --git a/sched/init/nx_start.c b/sched/init/nx_start.c index 3fb1cbace8d..aeafd5fca42 100644 --- a/sched/init/nx_start.c +++ b/sched/init/nx_start.c @@ -46,11 +46,8 @@ #include "sched/sched.h" #include "signal/signal.h" -#include "wdog/wdog.h" #include "semaphore/semaphore.h" -#ifndef CONFIG_DISABLE_MQUEUE -# include "mqueue/mqueue.h" -#endif +#include "mqueue/mqueue.h" #include "clock/clock.h" #include "timer/timer.h" #include "irq/irq.h" @@ -627,15 +624,6 @@ void nx_start(void) irq_initialize(); } - /* Initialize the watchdog facility (if included in the link) */ - -#ifdef CONFIG_HAVE_WEAKFUNCTIONS - if (wd_initialize != NULL) -#endif - { - wd_initialize(); - } - /* Initialize the POSIX timer facility (if included in the link) */ #ifdef CONFIG_HAVE_WEAKFUNCTIONS diff --git a/sched/wdog/wd_initialize.c b/sched/wdog/wd_initialize.c index 4062802f0df..5b4f6246ccc 100644 --- a/sched/wdog/wd_initialize.c +++ b/sched/wdog/wd_initialize.c @@ -50,29 +50,3 @@ clock_t g_wdtickbase; /**************************************************************************** * Public Functions ****************************************************************************/ - -/**************************************************************************** - * Name: wd_initialize - * - * Description: - * This function initializes the watchdog data structures - * - * Input Parameters: - * None - * - * Returned Value: - * None - * - * Assumptions: - * This function must be called early in the initialization sequence - * before the timer interrupt is attached and before any watchdog - * services are used. - * - ****************************************************************************/ - -void wd_initialize(void) -{ - /* Initialize watchdog lists */ - - sq_init(&g_wdactivelist); -} diff --git a/sched/wdog/wdog.h b/sched/wdog/wdog.h index c5279769d25..76b71441964 100644 --- a/sched/wdog/wdog.h +++ b/sched/wdog/wdog.h @@ -86,27 +86,6 @@ extern clock_t g_wdtickbase; * Public Function Prototypes ****************************************************************************/ -/**************************************************************************** - * Name: wd_initialize - * - * Description: - * This function initializes the watchdog data structures - * - * Input Parameters: - * None - * - * Returned Value: - * None - * - * Assumptions: - * This function must be called early in the initialization sequence - * before the timer interrupt is attached and before any watchdog - * services are used. - * - ****************************************************************************/ - -void weak_function wd_initialize(void); - /**************************************************************************** * Name: wd_timer *