Skip to content

Commit 34dec48

Browse files
lyakhkv2019i
authored andcommitted
schedule: dp: don't use privileged instructions
When LL runs in userspace, multiple DP functions are called in userspace mode too. They cannot use privileged instructions then. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 38c802f commit 34dec48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/schedule/zephyr_dp_schedule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static int scheduler_dp_task_stop(void *data, struct task *task)
255255
struct task_dp_pdata *pdata = task->priv_data;
256256

257257
/* this is asyn cancel - mark the task as canceled and remove it from scheduling */
258-
lock_key = scheduler_dp_lock(cpu_get_id());
258+
lock_key = scheduler_dp_lock(task->core);
259259

260260
task->state = SOF_TASK_STATE_CANCEL;
261261
list_item_del(&task->list);
@@ -307,7 +307,7 @@ static int scheduler_dp_task_shedule(void *data, struct task *task, uint64_t sta
307307
struct task_dp_pdata *pdata = task->priv_data;
308308
unsigned int lock_key;
309309

310-
lock_key = scheduler_dp_lock(cpu_get_id());
310+
lock_key = scheduler_dp_lock(task->core);
311311

312312
if (task_is_active(task)) {
313313
scheduler_dp_unlock(lock_key);

0 commit comments

Comments
 (0)