scheduler: make ops static

In both native and Zephyr builds schedule_edf_ops and
schedule_ll_ops are only used in one file each, make them
static.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2021-04-29 17:51:45 +02:00 committed by Liam Girdwood
parent 0c7e4c3255
commit 369a59431a
3 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ struct edf_schedule_data {
uint32_t clock;
};
struct scheduler_ops schedule_edf_ops;
static struct scheduler_ops schedule_edf_ops;
static struct edf_schedule_data *sch;
@ -118,7 +118,7 @@ static int schedule_edf_task_free(void *data, struct task *task)
return 0;
}
struct scheduler_ops schedule_edf_ops = {
static struct scheduler_ops schedule_edf_ops = {
.schedule_task = schedule_edf_task,
.schedule_task_running = NULL,
.schedule_task_complete = NULL,

View File

@ -35,7 +35,7 @@ struct edf_schedule_data {
int irq;
};
const struct scheduler_ops schedule_edf_ops;
static const struct scheduler_ops schedule_edf_ops;
static int schedule_edf_task_complete(void *data, struct task *task);
static int schedule_edf_task_running(void *data, struct task *task);
@ -307,7 +307,7 @@ static void schedule_edf(void *data)
interrupt_set(edf_sch->irq);
}
const struct scheduler_ops schedule_edf_ops = {
static const struct scheduler_ops schedule_edf_ops = {
.schedule_task = schedule_edf_task,
.schedule_task_running = schedule_edf_task_running,
.schedule_task_complete = schedule_edf_task_complete,

View File

@ -48,7 +48,7 @@ struct ll_schedule_data {
struct ll_schedule_domain *domain; /* scheduling domain */
};
const struct scheduler_ops schedule_ll_ops;
static const struct scheduler_ops schedule_ll_ops;
#define perf_ll_sched_trace(pcd, ll_sched) \
tr_info(&ll_tr, "perf ll_work peak plat %u cpu %u", \
@ -651,7 +651,7 @@ int scheduler_init_ll(struct ll_schedule_domain *domain)
return 0;
}
const struct scheduler_ops schedule_ll_ops = {
static const struct scheduler_ops schedule_ll_ops = {
.schedule_task = schedule_ll_task,
.schedule_task_free = schedule_ll_task_free,
.schedule_task_cancel = schedule_ll_task_cancel,