mirror of https://github.com/thesofproject/sof.git
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:
parent
fad27f13d1
commit
61c91be9fd
|
@ -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. */
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue