Skip to content

Commit a48d10d

Browse files
userspace: proxy: allocate work item as cached
The proxy now uses a separate worker per core. Each work item is allocated, submitted and processed on the same core, so cross-core coherency is no longer required. The same applies when per-core DP threads process work items. Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
1 parent 9fe35a1 commit a48d10d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/audio/module_adapter/library/userspace_proxy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ static int user_work_item_init(struct userspace_context *user_ctx, struct k_heap
180180
if (ret)
181181
return ret;
182182

183-
/* TODO: this can probably be cached now? */
184-
work_item = sof_heap_alloc(user_heap, SOF_MEM_FLAG_COHERENT, sizeof(*work_item), 0);
183+
/* Work item is allocated, submitted and processed on the same core -- can be cached. */
184+
work_item = sof_heap_alloc(user_heap, 0, sizeof(*work_item), 0);
185185
if (!work_item) {
186186
user_worker_put(core);
187187
return -ENOMEM;

0 commit comments

Comments
 (0)