Skip to content

Commit 442aa07

Browse files
committed
schedule: remove scheduler_restore()
The last user of schedule_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 442aa07

1 file changed

Lines changed: 0 additions & 27 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.

0 commit comments

Comments
 (0)