Skip to content

Commit 7848055

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 cc55ed9 commit 7848055

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
@@ -412,10 +412,12 @@ static int zephyr_ll_task_free(void *data, struct task *task)
412412

413413
zephyr_ll_assert_core(sch);
414414

415+
#ifndef CONFIG_SOF_USERSPACE_LL
415416
if (k_is_in_isr()) {
416417
tr_err(&ll_tr, "cannot free tasks from interrupt context!");
417418
return -EDEADLK;
418419
}
420+
#endif
419421

420422
zephyr_ll_lock(sch, &flags);
421423

0 commit comments

Comments
 (0)