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:
yezhonghui
2025-04-14 16:01:32 +08:00
committed by Xiang Xiao
parent 0e6afae4f2
commit 93bf613505
2 changed files with 0 additions and 29 deletions
-13
View File
@@ -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
-16
View File
@@ -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);
}