Skip to content

Commit 9c248bc

Browse files
committed
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 3da40dd commit 9c248bc

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
@@ -267,7 +267,7 @@ static int scheduler_dp_task_stop(void *data, struct task *task)
267267
struct task_dp_pdata *pdata = task->priv_data;
268268

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

272272
task->state = SOF_TASK_STATE_CANCEL;
273273
list_item_del(&task->list);
@@ -319,7 +319,7 @@ static int scheduler_dp_task_shedule(void *data, struct task *task, uint64_t sta
319319
struct task_dp_pdata *pdata = task->priv_data;
320320
unsigned int lock_key;
321321

322-
lock_key = scheduler_dp_lock(cpu_get_id());
322+
lock_key = scheduler_dp_lock(task->core);
323323

324324
if (task_is_active(task)) {
325325
scheduler_dp_unlock(lock_key);

0 commit comments

Comments
 (0)