Skip to content

Commit c7e4474

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 8a04d91 commit c7e4474

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
@@ -803,14 +803,17 @@ __cold int zephyr_ll_scheduler_init(struct ll_schedule_domain *domain)
803803
return 0;
804804
}
805805

806-
#if CONFIG_SOF_USERSPACE_LL
807806
void scheduler_get_task_info_ll(struct scheduler_props *scheduler_props,
808807
uint32_t *data_off_size)
809808
{
810809
uint32_t flags;
811810

812811
scheduler_props->processing_domain = COMP_PROCESSING_DOMAIN_LL;
812+
#if CONFIG_SOF_USERSPACE_LL
813813
struct zephyr_ll *ll_sch = scheduler_get_data_for_core(SOF_SCHEDULE_LL_TIMER, cpu_get_id());
814+
#else
815+
struct zephyr_ll *ll_sch = scheduler_get_data(SOF_SCHEDULE_LL_TIMER);
816+
#endif
814817

815818
zephyr_ll_lock(ll_sch, &flags);
816819
scheduler_get_task_info(scheduler_props, data_off_size, &ll_sch->tasks);
@@ -820,8 +823,11 @@ void scheduler_get_task_info_ll(struct scheduler_props *scheduler_props,
820823
/* Return a pointer to the LL scheduler timer domain */
821824
struct ll_schedule_domain *zephyr_ll_domain(void)
822825
{
826+
#if CONFIG_SOF_USERSPACE_LL
823827
struct zephyr_ll *ll_sch = scheduler_get_data_for_core(SOF_SCHEDULE_LL_TIMER, cpu_get_id());
828+
#else
829+
struct zephyr_ll *ll_sch = scheduler_get_data(SOF_SCHEDULE_LL_TIMER);
830+
#endif
824831

825-
return ll_sch->ll_domain;
832+
return ll_sch ? ll_sch->ll_domain : NULL;
826833
}
827-
#endif

0 commit comments

Comments
 (0)