forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedf_schedule.h
More file actions
33 lines (24 loc) · 778 Bytes
/
edf_schedule.h
File metadata and controls
33 lines (24 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2017 Intel Corporation. All rights reserved.
*
* Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
*/
#ifndef __SOF_SCHEDULE_EDF_SCHEDULE_H__
#define __SOF_SCHEDULE_EDF_SCHEDULE_H__
#include <rtos/task.h>
#include <sof/trace/trace.h>
#include <user/trace.h>
#include <stdint.h>
#define EDF_ZEPHYR_PRIORITY 1
#define edf_sch_set_pdata(task, data) \
(task->priv_data = data)
#define edf_sch_get_pdata(task) task->priv_data
struct edf_task_pdata {
void *ctx;
};
int scheduler_init_edf(void);
int schedule_task_init_edf(struct task *task, const struct sof_uuid_entry *uid,
const struct task_ops *ops,
void *data, uint16_t core, uint32_t flags);
#endif /* __SOF_SCHEDULE_EDF_SCHEDULE_H__ */