Skip to content

Commit

Permalink
TEMP: add perf moniotor init to ipc init, ALSO comment normal init
Browse files Browse the repository at this point in the history
  • Loading branch information
tobonex committed Jul 25, 2024
1 parent 0e10666 commit 8cbed1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/debug/telemetry/performance_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ int io_perf_monitor_init(void)
}

/* init performance monitor using Zephyr */
SYS_INIT(io_perf_monitor_init, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY);
/* IMPORTANT , this init is now in IPC init, temporarily */
//SYS_INIT(io_perf_monitor_init, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY);

static struct io_perf_data_item *io_perf_monitor_get_next_slot(struct io_perf_monitor_ctx *self)
{
Expand Down
1 change: 1 addition & 0 deletions src/ipc/ipc-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ int ipc_init(struct sof *sof)
list_init(&sof->ipc->comp_list);

#ifdef CONFIG_SOF_TELEMETRY_IO_PERFORMANCE_MEASUREMENTS
io_perf_monitor_init();
struct io_perf_data_item init_data = {IPC_ID,
cpu_get_id(),
INPUT_DIRECTION,
Expand Down

0 comments on commit 8cbed1f

Please sign in to comment.