Skip to content

Commit

Permalink
zephyr: ll-schedule: stop using zephyr/timeout_q.h
Browse files Browse the repository at this point in the history
Replace the call to z_abort_timeout() to be able to drop
dependency to timeout_q.h. This header is intended to be Zephyr
kernel private and plan is to remove this.

Signed-off-by: Kai Vehmanen <[email protected]>
  • Loading branch information
kv2019i committed Sep 4, 2023
1 parent d964b7b commit 2947a5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/schedule/zephyr_domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include <zephyr/kernel.h>
#include <zephyr/sys_clock.h>
#include <zephyr/timeout_q.h>

LOG_MODULE_DECLARE(ll_schedule, CONFIG_SOF_LOG_LEVEL);

Expand Down Expand Up @@ -112,7 +111,7 @@ static void zephyr_domain_timer_fn(struct k_timer *timer)
* registered again next time.
*/
if (!zephyr_domain) {
z_abort_timeout(&timer->timeout);
k_timer_stop(&timer);
return;
}

Expand Down

0 comments on commit 2947a5a

Please sign in to comment.