library: testbench: support both LL and EDF scheduler types.

Don't hard code the scheduler type for EDF.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2021-08-16 16:47:58 +01:00 committed by Liam Girdwood
parent 4af91f2c04
commit 69eca98dbd
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ int schedule_task_init(struct task *task,
return -EINVAL;
task->uid = uid;
task->type = SOF_SCHEDULE_EDF; /* Note: Force EDF scheduler */
task->type = type;
task->priority = priority;
task->core = core;
task->flags = flags;
@ -59,7 +59,7 @@ void scheduler_init(int type, const struct scheduler_ops *ops, void *data)
sch = calloc(1, sizeof(*sch));
list_init(&sch->list);
sch->type = SOF_SCHEDULE_EDF; /* Note: Force EDF scheduler */
sch->type = type;
sch->ops = ops;
sch->data = data;