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:
parent
cf2538c277
commit
b0786606fc
@ -46,11 +46,8 @@
|
|||||||
|
|
||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
#include "signal/signal.h"
|
#include "signal/signal.h"
|
||||||
#include "wdog/wdog.h"
|
|
||||||
#include "semaphore/semaphore.h"
|
#include "semaphore/semaphore.h"
|
||||||
#ifndef CONFIG_DISABLE_MQUEUE
|
|
||||||
#include "mqueue/mqueue.h"
|
#include "mqueue/mqueue.h"
|
||||||
#endif
|
|
||||||
#include "clock/clock.h"
|
#include "clock/clock.h"
|
||||||
#include "timer/timer.h"
|
#include "timer/timer.h"
|
||||||
#include "irq/irq.h"
|
#include "irq/irq.h"
|
||||||
@ -627,15 +624,6 @@ void nx_start(void)
|
|||||||
irq_initialize();
|
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) */
|
/* Initialize the POSIX timer facility (if included in the link) */
|
||||||
|
|
||||||
#ifdef CONFIG_HAVE_WEAKFUNCTIONS
|
#ifdef CONFIG_HAVE_WEAKFUNCTIONS
|
||||||
|
@ -50,29 +50,3 @@ clock_t g_wdtickbase;
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* 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);
|
|
||||||
}
|
|
||||||
|
@ -86,27 +86,6 @@ extern clock_t g_wdtickbase;
|
|||||||
* Public Function Prototypes
|
* 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
|
* Name: wd_timer
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user