Skip to content

Commit e787a27

Browse files
committed
dp: application: remove unneeded operations copy
The module operation structure is located in module's memory, so it is accessible to the thread, no need to copy it. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 0cd2e00 commit e787a27

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/schedule/zephyr_dp_schedule_application.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,11 @@ int scheduler_dp_task_init(struct task **task, const struct sof_uuid_entry *uid,
416416
struct task task;
417417
struct task_dp_pdata pdata;
418418
struct comp_driver drv;
419-
struct module_interface ops;
420419
} *task_memory;
421420

422421
int ret;
423422

424-
/* must be called on the same core the task will be binded to */
423+
/* must be called on the same core the task will be bound to */
425424
assert(cpu_get_id() == core);
426425

427426
/*
@@ -441,8 +440,6 @@ int scheduler_dp_task_init(struct task **task, const struct sof_uuid_entry *uid,
441440
memset(task_memory, 0, sizeof(*task_memory));
442441

443442
task_memory->drv = *mod->dev->drv;
444-
task_memory->ops = *mod->dev->drv->adapter_ops; // FIXME: is this needed?
445-
task_memory->drv.adapter_ops = &task_memory->ops;
446443
mod->dev->drv = &task_memory->drv;
447444

448445
/* allocate stack - must be aligned and cached so a separate alloc */

0 commit comments

Comments
 (0)