mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
net/arp: Redesign ARP table aging to simplify the net initialization
This commit is contained in:
+2
-19
@@ -68,9 +68,6 @@
|
||||
#ifndef CONFIG_DISABLE_PTHREAD
|
||||
# include "pthread/pthread.h"
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_WORKQUEUE
|
||||
# include "wqueue/wqueue.h"
|
||||
#endif
|
||||
#include "clock/clock.h"
|
||||
#include "timer/timer.h"
|
||||
#include "irq/irq.h"
|
||||
@@ -694,15 +691,9 @@ void os_start(void)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
/* Initialize the networking system. Network initialization is
|
||||
* performed in two steps: (1) net_setup() initializes static
|
||||
* configuration of the network support. This must be done prior
|
||||
* to registering network drivers by up_initialize(). This step
|
||||
* cannot require upon any hardware-depending features such as
|
||||
* timers or interrupts.
|
||||
*/
|
||||
/* Initialize the networking system */
|
||||
|
||||
net_setup();
|
||||
net_initialize();
|
||||
#endif
|
||||
|
||||
/* The processor specific details of running the operating system
|
||||
@@ -717,14 +708,6 @@ void os_start(void)
|
||||
|
||||
g_os_initstate = OSINIT_HARDWARE;
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
/* Complete initialization the networking system now that interrupts
|
||||
* and timers have been configured by up_initialize().
|
||||
*/
|
||||
|
||||
net_initialize();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MM_SHM
|
||||
/* Initialize shared memory support */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user