Skip to content

Commit 3dd7289

Browse files
committed
schedule: zephyr_ll: ISR check is not needed when LL in user-space
No need to check whether we are running in ISR as this can never happen when LL scheduler is run in user-space. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 9526d7d commit 3dd7289

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/schedule/zephyr_ll.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,12 @@ static int zephyr_ll_task_free(void *data, struct task *task)
402402

403403
zephyr_ll_assert_core(sch);
404404

405+
#ifndef CONFIG_SOF_USERSPACE_LL
405406
if (k_is_in_isr()) {
406407
tr_err(&ll_tr, "cannot free tasks from interrupt context!");
407408
return -EDEADLK;
408409
}
410+
#endif
409411

410412
zephyr_ll_lock(sch, &flags);
411413

0 commit comments

Comments
 (0)