From 1530819e12cf48fc47a93c8d69d6394861ee48f4 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 29 Nov 2019 18:32:34 -0500 Subject: [PATCH] tracing: remove duplicate tracing of thread creation This is already being called in z_setup_new_thread. Signed-off-by: Anas Nashif --- kernel/init.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/init.c b/kernel/init.c index 9b79b51bb74..6c822f6dbda 100644 --- a/kernel/init.c +++ b/kernel/init.c @@ -370,14 +370,11 @@ static void prepare_multithreading(struct k_thread *dummy_thread) CONFIG_MAIN_STACK_SIZE, bg_thread_main, NULL, NULL, NULL, CONFIG_MAIN_THREAD_PRIORITY, K_ESSENTIAL, "main"); - sys_trace_thread_create(&z_main_thread); - z_mark_thread_as_started(&z_main_thread); z_ready_thread(&z_main_thread); init_idle_thread(&z_idle_thread, z_idle_stack); _kernel.cpus[0].idle_thread = &z_idle_thread; - sys_trace_thread_create(&z_idle_thread); #if defined(CONFIG_SMP) && CONFIG_MP_NUM_CPUS > 1 init_idle_thread(_idle_thread1, _idle_stack1);