Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions src/include/sof/schedule/schedule.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,6 @@ struct scheduler_ops {
*/
void (*scheduler_free)(void *data, uint32_t flags);

/**
* Restores scheduler's resources.
* @param data Private data of selected scheduler.
* @return 0 if succeeded, error code otherwise.
*
* This operation is optional.
*/
int (*scheduler_restore)(void *data);

/**
* Initializes context
* @param data Private data of selected scheduler.
Expand Down Expand Up @@ -371,24 +362,6 @@ static inline void schedule_free(uint32_t flags)
}
}

/** See scheduler_ops::scheduler_restore */
static inline int schedulers_restore(void)
{
struct schedulers *schedulers = *arch_schedulers_get();
struct schedule_data *sch;
struct list_item *slist;

assert(schedulers);

list_for_item(slist, &schedulers->list) {
sch = container_of(slist, struct schedule_data, list);
if (sch->ops->scheduler_restore)
return sch->ops->scheduler_restore(sch->data);
}

return 0;
}

/** See scheduler_ops::scheduler_init_context */
static inline struct k_thread *scheduler_init_context(struct task *task)
{
Expand Down
1 change: 0 additions & 1 deletion src/schedule/ll_schedule_xtos.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,5 @@ static const struct scheduler_ops schedule_ll_ops = {
.schedule_task_cancel = schedule_ll_task_cancel,
.reschedule_task = reschedule_ll_task,
.scheduler_free = scheduler_free_ll,
.scheduler_restore = NULL,
.schedule_task_running = NULL,
};
Loading