Skip to content

Commit c7a7e98

Browse files
committed
schedule: ll: fix non-userspace build
zephyr_ll_domain() and scheduler_get_task_info_ll() are needed in non-userspace builds too, make them universally available. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent de721ab commit c7a7e98

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/schedule/zephyr_ll.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,14 +760,17 @@ int zephyr_ll_scheduler_init(struct ll_schedule_domain *domain)
760760
return 0;
761761
}
762762

763-
#if CONFIG_SOF_USERSPACE_LL
764763
void scheduler_get_task_info_ll(struct scheduler_props *scheduler_props,
765764
uint32_t *data_off_size)
766765
{
767766
uint32_t flags;
768767

769768
scheduler_props->processing_domain = COMP_PROCESSING_DOMAIN_LL;
769+
#if CONFIG_SOF_USERSPACE_LL
770770
struct zephyr_ll *ll_sch = scheduler_get_data_for_core(SOF_SCHEDULE_LL_TIMER, cpu_get_id());
771+
#else
772+
struct zephyr_ll *ll_sch = scheduler_get_data(SOF_SCHEDULE_LL_TIMER);
773+
#endif
771774

772775
zephyr_ll_lock(ll_sch, &flags);
773776
scheduler_get_task_info(scheduler_props, data_off_size, &ll_sch->tasks);
@@ -777,8 +780,11 @@ void scheduler_get_task_info_ll(struct scheduler_props *scheduler_props,
777780
/* Return a pointer to the LL scheduler timer domain */
778781
struct ll_schedule_domain *zephyr_ll_domain(void)
779782
{
783+
#if CONFIG_SOF_USERSPACE_LL
780784
struct zephyr_ll *ll_sch = scheduler_get_data_for_core(SOF_SCHEDULE_LL_TIMER, cpu_get_id());
785+
#else
786+
struct zephyr_ll *ll_sch = scheduler_get_data(SOF_SCHEDULE_LL_TIMER);
787+
#endif
781788

782-
return ll_sch->ll_domain;
789+
return ll_sch ? ll_sch->ll_domain : NULL;
783790
}
784-
#endif

0 commit comments

Comments
 (0)