Skip to content

Commit 5d3ee22

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. Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
1 parent d762108 commit 5d3ee22

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/audio/module_adapter/library/userspace_proxy.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ static int user_work_item_init(struct userspace_context *user_ctx, struct k_heap
182182
if (ret)
183183
return ret;
184184

185-
/* TODO: this can probably be allocated as cached? */
186-
work_item = sof_heap_alloc(user_heap, SOF_MEM_FLAG_COHERENT, sizeof(*work_item), 0);
185+
work_item = sof_heap_alloc(user_heap, 0, sizeof(*work_item), 0);
187186
if (!work_item) {
188187
user_worker_put(cpu);
189188
return -ENOMEM;

0 commit comments

Comments
 (0)