xtos: move sof/lib/agent.h to application interface #9490
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The SOF agent.h interface is a system agent that is implemented on top of SOF audio task scheduling interface. An agent task is added to the low-latency scheduler to monitor health of the system. The current implementation is actually RTOS agnostic and can run on top of both Zephyr and XTOS.
Some RTOSes offer a lower level watchdog interface to implement system monitoring. Previously agent.h was considered as the abstraction point, onto which RTOS specific implementations can be hooked in.
This patch moves agent.h back to application interface. In the future, a more low-level agent hooking into a watchdog system (either hardware watchdog directly, or software abstraction like Zephyr's task_wdt) can be added on the side, and enabled on a per target basis. The audio scheduler level SOF agent will continue to be available as an option, and can be used with all RTOS'es.
Link: #9015