@@ -632,7 +632,8 @@ struct task *zephyr_ll_task_alloc(void)
632632
633633void user_ll_grant_access (struct k_thread * thread )
634634{
635- struct zephyr_ll * ll_sch = (struct zephyr_ll * )scheduler_get_data_for_core (SOF_SCHEDULE_LL_TIMER , 0 );
635+ struct zephyr_ll * ll_sch = (struct zephyr_ll * )scheduler_get_data_for_core (SOF_SCHEDULE_LL_TIMER ,
636+ cpu_get_id ());
636637
637638 k_thread_access_grant (thread , ll_sch -> lock );
638639}
@@ -766,7 +767,8 @@ void scheduler_get_task_info_ll(struct scheduler_props *scheduler_props,
766767 uint32_t flags ;
767768
768769 scheduler_props -> processing_domain = COMP_PROCESSING_DOMAIN_LL ;
769- struct zephyr_ll * ll_sch = (struct zephyr_ll * )scheduler_get_data_for_core (SOF_SCHEDULE_LL_TIMER , 0 );
770+ struct zephyr_ll * ll_sch = (struct zephyr_ll * )scheduler_get_data_for_core (
771+ SOF_SCHEDULE_LL_TIMER , cpu_get_id ());
770772
771773 zephyr_ll_lock (ll_sch , & flags );
772774 scheduler_get_task_info (scheduler_props , data_off_size , & ll_sch -> tasks );
@@ -776,7 +778,7 @@ void scheduler_get_task_info_ll(struct scheduler_props *scheduler_props,
776778/* Return a pointer to the LL scheduler timer domain */
777779struct ll_schedule_domain * zephyr_ll_domain (void )
778780{
779- struct zephyr_ll * ll_sch = scheduler_get_data_for_core (SOF_SCHEDULE_LL_TIMER , 0 );
781+ struct zephyr_ll * ll_sch = scheduler_get_data_for_core (SOF_SCHEDULE_LL_TIMER , cpu_get_id () );
780782
781783 return ll_sch -> ll_domain ;
782784}
0 commit comments