mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
sim/loop: delete sim loop theads at bringup
wdt thread replace sim loop thread Signed-off-by: yezhonghui <yezhonghui@xiaomi.com>
This commit is contained in:
@@ -169,19 +169,6 @@ config SIM_WALLTIME_SIGNAL
|
||||
|
||||
endchoice
|
||||
|
||||
config SIM_LOOPTASK_PRIORITY
|
||||
int "looptask priority"
|
||||
default SCHED_HPWORKPRIORITY if SCHED_HPWORK
|
||||
default 255 if !SCHED_HPWORK
|
||||
---help---
|
||||
Looptask priority
|
||||
|
||||
config SIM_LOOPTASK_INTERVAL
|
||||
int "looptask interval in us"
|
||||
default 10000
|
||||
---help---
|
||||
Looptask sleep time
|
||||
|
||||
config SIM_LOOP_INTERVAL
|
||||
int "loop interval in ms"
|
||||
default 10
|
||||
|
||||
@@ -215,18 +215,6 @@ static void sim_init_smartfs(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
static int sim_loop_task(int argc, char **argv)
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
/* Sleep minimal time, let the idle run */
|
||||
|
||||
usleep(CONFIG_SIM_LOOPTASK_INTERVAL);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
@@ -337,8 +325,4 @@ void up_initialize(void)
|
||||
wd_start(&g_x11update_wdog, 0, sim_x11update_interrupt,
|
||||
(wdparm_t)&g_x11update_wdog);
|
||||
#endif
|
||||
|
||||
kthread_create("loop_task", CONFIG_SIM_LOOPTASK_PRIORITY,
|
||||
CONFIG_DEFAULT_TASK_STACKSIZE,
|
||||
sim_loop_task, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user