scheduler: remove .scheduler_run

The .scheduler_run() operation is never used, remove it.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2021-04-30 16:23:53 +02:00 committed by Liam Girdwood
parent fad27f13d1
commit 61c91be9fd
4 changed files with 2 additions and 18 deletions

View File

@ -38,8 +38,8 @@ enum {
* Scheduler operations.
*
* Almost all schedule operations must return 0 for success and negative values
* for errors. Only scheduler_free and scheduler_run operations are allowed
* to not return any status.
* for errors. Only the scheduler_free operation is allowed to not return any
* status.
*/
struct scheduler_ops {
/**
@ -116,14 +116,6 @@ struct scheduler_ops {
* This operation is optional.
*/
void (*scheduler_free)(void *data);
/**
* Starts scheduler (not all schedulers require to be manually started).
* @param data Private data of selected scheduler.
*
* This operation is optional.
*/
void (*scheduler_run)(void *data);
};
/** \brief Holds information about scheduler. */

View File

@ -90,11 +90,6 @@ static void edf_scheduler_free(void *data)
free(data);
}
/* The following definitions are to satisfy libsof linker errors */
static void schedule_edf(void *data)
{
}
static int schedule_edf_task_cancel(void *data, struct task *task)
{
if (task->state == SOF_TASK_STATE_QUEUED) {
@ -126,5 +121,4 @@ static struct scheduler_ops schedule_edf_ops = {
.schedule_task_cancel = schedule_edf_task_cancel,
.schedule_task_free = schedule_edf_task_free,
.scheduler_free = edf_scheduler_free,
.scheduler_run = schedule_edf
};

View File

@ -315,5 +315,4 @@ static const struct scheduler_ops schedule_edf_ops = {
.schedule_task_cancel = schedule_edf_task_cancel,
.schedule_task_free = schedule_edf_task_free,
.scheduler_free = scheduler_free_edf,
.scheduler_run = schedule_edf
};

View File

@ -659,5 +659,4 @@ static const struct scheduler_ops schedule_ll_ops = {
.scheduler_free = scheduler_free_ll,
.schedule_task_running = NULL,
.schedule_task_complete = NULL,
.scheduler_run = NULL
};