Skip to content

Commit 1f394ca

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 accf902 commit 1f394ca

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
@@ -150,15 +150,6 @@ struct scheduler_ops {
150150
*/
151151
void (*scheduler_free)(void *data, uint32_t flags);
152152

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);
161-
162153
/**
163154
* Initializes context
164155
* @param data Private data of selected scheduler.
@@ -371,24 +362,6 @@ static inline void schedule_free(uint32_t flags)
371362
}
372363
}
373364

374-
/** See scheduler_ops::scheduler_restore */
375-
static inline int schedulers_restore(void)
376-
{
377-
struct schedulers *schedulers = *arch_schedulers_get();
378-
struct schedule_data *sch;
379-
struct list_item *slist;
380-
381-
assert(schedulers);
382-
383-
list_for_item(slist, &schedulers->list) {
384-
sch = container_of(slist, struct schedule_data, list);
385-
if (sch->ops->scheduler_restore)
386-
return sch->ops->scheduler_restore(sch->data);
387-
}
388-
389-
return 0;
390-
}
391-
392365
/** See scheduler_ops::scheduler_init_context */
393366
static inline struct k_thread *scheduler_init_context(struct task *task)
394367
{

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)