Uh oh!
There was an error while loading. Please reload this page.
[Userspace LL] schedule: dp: call directly instead of a notifier - #11063
Conversation
There was a problem hiding this comment.
Pull request overview
This PR removes the notifier-based indirection for the Zephyr LL “post-run” DP tick and replaces it with a direct scheduler_dp_ll_tick() call from the LL scheduler, aiming to improve clarity since the notifier was deterministically invoked immediately anyway.
Changes:
- Replaced
NOTIFIER_ID_LL_POST_RUNemission inzephyr_ll.cwith a directscheduler_dp_ll_tick()call. - Removed notifier registration/usage from the DP scheduler and updated
scheduler_dp_ll_tick()to a simplevoidAPI. - Simplified
scheduler_dp_recalculate()by dropping theis_ll_post_runparameter and updating its implementations.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/schedule/zephyr_ll.c | Calls DP tick directly after LL run instead of emitting a notifier event. |
| src/schedule/zephyr_dp_schedule.h | Updates the scheduler_dp_recalculate() prototype to remove the boolean parameter. |
| src/schedule/zephyr_dp_schedule.c | Removes notifier registration; updates scheduler_dp_ll_tick() signature and init flow. |
| src/schedule/zephyr_dp_schedule_thread.c | Updates scheduler_dp_recalculate() signature and removes the LL-post-run conditional from countdown logic. |
| src/schedule/zephyr_dp_schedule_application.c | Mirrors the scheduler_dp_recalculate() signature/logic change for userspace application builds. |
| src/include/sof/schedule/dp_schedule.h | Exposes scheduler_dp_ll_tick() in the public DP scheduler API. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5f305bf to
275a6c1Compare
kv2019i
left a comment
There was a problem hiding this comment.
Looks good. Can you update the README.md as well?
Uh oh!
There was an error while loading. Please reload this page.
lyakh
commented
Aug 5, 2026
@kv2019i done |
kv2019i
commented
Aug 5, 2026
scheduler_dp_ll_tick() is currently registered as a notifier callback, but it's always triggered deterministically, always with the same-core-only flag, which leads to it being called immediately. So the notifier only adds a layer of indirection and reduces clarity. Replace it with a direct function call. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
lyakh
commented
Aug 6, 2026
Uh oh!
There was an error while loading. Please reload this page.
scheduler_dp_ll_tick() is currently registered as a notifier callback, but it's always triggered deterministically, always with the same-core-only flag, which leads to it being called immediately. So the notifier only adds a layer of indirection and reduces clarity. Replace it with a direct function call.