Sound Open Firmware
Loading...
Searching...
No Matches
schedule.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2016 Intel Corporation. All rights reserved.
4 *
5 * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
6 * Keyon Jie <yang.jie@linux.intel.com>
7 */
8
9#ifndef __SOF_IPC_SCHEDULE_H__
10#define __SOF_IPC_SCHEDULE_H__
11
12#include <rtos/task.h>
13#include <rtos/sof.h>
14#include <stdbool.h>
15#include <stdint.h>
16
18#define IPC_PERIOD_USEC 100
19
20struct ipc;
21
26static inline uint64_t ipc_task_deadline(void *data)
27{
28 /* TODO: Currently it's a workaround to execute IPC tasks ASAP.
29 * In the future IPCs should have a cycle budget and deadline
30 * should be calculated based on that value. This means every
31 * IPC should have its own maximum number of cycles that is required
32 * to finish processing. This will allow us to calculate task deadline.
33 */
35}
36
42
43#endif
uint32_t data[]
Definition debug_stream_slot.h:2
void ipc_schedule_process(struct ipc *ipc)
Schedule processing of the next IPC command from host.
static uint64_t ipc_task_deadline(void *data)
Get IPC command processing deadline.
Definition schedule.h:26
Definition common.h:90
#define SOF_TASK_DEADLINE_NOW
Definition task.h:30