[Sound-open-firmware] [PATCH] scheduler: ignore the ignored tasks
Keyon Jie
yang.jie at linux.intel.com
Wed Nov 15 10:54:14 CET 2017
Signed-off-by: Keyon Jie <yang.jie at linux.intel.com>
---
src/lib/schedule.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/lib/schedule.c b/src/lib/schedule.c
index ab0602b..942067c 100644
--- a/src/lib/schedule.c
+++ b/src/lib/schedule.c
@@ -120,6 +120,10 @@ static inline struct task *edf_get_next(uint64_t current,
if (task->state != TASK_STATE_QUEUED)
continue;
+ /* ignore the ignored tasks */
+ if (task == ignore)
+ continue;
+
/* include the length of task in deadline calc */
deadline = task->deadline - task->max_rtime;
--
2.11.0
More information about the Sound-open-firmware
mailing list