Skip to content

Commit

Permalink
ipc: move delayed IPC sending to the primary core
Browse files Browse the repository at this point in the history
Low level IPC processing should be confined to the primary core. Move
delayed IPC sending to a dedicated work queue with core 0 affinity.

Fixes: #8165
Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh committed Jan 10, 2025
1 parent a87f20c commit 0bf9779
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ipc/ipc-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static void schedule_ipc_worker(void)
#ifdef __ZEPHYR__
struct ipc *ipc = ipc_get();

k_work_schedule(&ipc->z_delayed_work, K_USEC(IPC_PERIOD_USEC));
sof_primary_wq_reschedule(&ipc->z_delayed_work, K_USEC(IPC_PERIOD_USEC));
#endif
}

Expand Down Expand Up @@ -305,6 +305,8 @@ int ipc_init(struct sof *sof)
#endif

#ifdef __ZEPHYR__
sof_primary_wq_init();

k_work_init_delayable(&sof->ipc->z_delayed_work, ipc_work_handler);
#endif

Expand Down

0 comments on commit 0bf9779

Please sign in to comment.