Skip to content

Commit 9f2275f

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 b1f8daf commit 9f2275f

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
@@ -170,8 +170,7 @@ static int user_work_item_init(struct userspace_context *user_ctx, struct k_heap
170170
if (ret)
171171
return ret;
172172

173-
/* TODO: this can probably be allocated as cached? */
174-
work_item = sof_heap_alloc(user_heap, SOF_MEM_FLAG_COHERENT, sizeof(*work_item), 0);
173+
work_item = sof_heap_alloc(user_heap, 0, sizeof(*work_item), 0);
175174
if (!work_item) {
176175
user_worker_put(cpu);
177176
return -ENOMEM;

0 commit comments

Comments
 (0)