sched/wdog: Remove wd_initialize which isn't really used anymore

since g_wdactivelist is already set to zero by the boot code

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-12 04:01:19 +08:00 committed by Gustavo Henrique Nihei
parent cf2538c277
commit b0786606fc
3 changed files with 1 additions and 60 deletions

View File

@ -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 "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

View File

@ -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);
}

View File

@ -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
*