mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
add the startup process tracepoint
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/queue.h>
|
||||
#include <nuttx/trace.h>
|
||||
|
||||
#include "timer/timer.h"
|
||||
|
||||
@@ -83,6 +84,8 @@ volatile sq_queue_t g_alloctimers;
|
||||
|
||||
void timer_initialize(void)
|
||||
{
|
||||
sched_trace_begin();
|
||||
|
||||
#if CONFIG_PREALLOC_TIMERS > 0
|
||||
int i;
|
||||
|
||||
@@ -101,6 +104,7 @@ void timer_initialize(void)
|
||||
/* Initialize the list of allocated timers */
|
||||
|
||||
sq_init((FAR sq_queue_t *)&g_alloctimers);
|
||||
sched_trace_end();
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user