Skip to content

Commit 28c3232

Browse files
committed
schedule: remove scheduler_restore()
The last user of scheduler_restore() was removed in commit 4f2e381 ("build: remove more XTOS left-overs"), so we can proceed it to remove it from schedule.h interface. This will pave way for further simplications of the schedule.h interface now as the role of this interface is reduce to audio task scheduling, while low-level task scheduling is done in Zephyr. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 1f4b8f0 commit 28c3232

2 files changed

Lines changed: 0 additions & 28 deletions

File tree

src/include/sof/schedule/schedule.h

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,6 @@ struct scheduler_ops {
149149
* This operation is optional.
150150
*/
151151
void (*scheduler_free)(void *data, uint32_t flags);
152-
153-
/**
154-
* Restores scheduler's resources.
155-
* @param data Private data of selected scheduler.
156-
* @return 0 if succeeded, error code otherwise.
157-
*
158-
* This operation is optional.
159-
*/
160-
int (*scheduler_restore)(void *data);
161152
};
162153

163154
/** \brief Holds information about scheduler. */
@@ -361,24 +352,6 @@ static inline void schedule_free(uint32_t flags)
361352
}
362353
}
363354

364-
/** See scheduler_ops::scheduler_restore */
365-
static inline int schedulers_restore(void)
366-
{
367-
struct schedulers *schedulers = *arch_schedulers_get();
368-
struct schedule_data *sch;
369-
struct list_item *slist;
370-
371-
assert(schedulers);
372-
373-
list_for_item(slist, &schedulers->list) {
374-
sch = container_of(slist, struct schedule_data, list);
375-
if (sch->ops->scheduler_restore)
376-
return sch->ops->scheduler_restore(sch->data);
377-
}
378-
379-
return 0;
380-
}
381-
382355
/**
383356
* Initializes scheduling task.
384357
* @param task Task to be initialized.

src/schedule/ll_schedule_xtos.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,5 @@ static const struct scheduler_ops schedule_ll_ops = {
808808
.schedule_task_cancel = schedule_ll_task_cancel,
809809
.reschedule_task = reschedule_ll_task,
810810
.scheduler_free = scheduler_free_ll,
811-
.scheduler_restore = NULL,
812811
.schedule_task_running = NULL,
813812
};

0 commit comments

Comments
 (0)