Commit fed1761
committed
audio: pipeline: use LL scheduler mutex for userspace pipeline triggers
In CONFIG_SOF_USERSPACE_LL builds, irq_local_disable() is not
available. Replace the no-op irq guard with the LL scheduler's own
k_mutex to prevent the scheduler from processing tasks while pipeline
state is being updated. The k_mutex is re-entrant so schedule_task()
calls inside the critical section are safe.
Add zephyr_ll_lock_sched() and zephyr_ll_unlock_sched() helpers that
acquire and release the scheduler mutex, and call them from
pipeline_schedule_triggered() under CONFIG_SOF_USERSPACE_LL.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent 1c7576f commit fed1761
3 files changed
Lines changed: 42 additions & 1 deletion
File tree
- src
- audio/pipeline
- include/sof/schedule
- schedule
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
285 | 296 | | |
286 | 297 | | |
287 | 298 | | |
| |||
290 | 301 | | |
291 | 302 | | |
292 | 303 | | |
| 304 | + | |
293 | 305 | | |
294 | 306 | | |
295 | 307 | | |
| |||
345 | 357 | | |
346 | 358 | | |
347 | 359 | | |
348 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
349 | 363 | | |
| 364 | + | |
350 | 365 | | |
351 | 366 | | |
352 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
581 | 605 | | |
582 | 606 | | |
583 | 607 | | |
| |||
0 commit comments