mirror of https://github.com/thesofproject/sof.git
schedule: fix edf reschedule
Should reschedule if we did not try to reschedule. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
This commit is contained in:
parent
d527b50816
commit
869c08d6c0
|
@ -140,9 +140,11 @@ static inline struct task *edf_get_next(uint64_t current,
|
|||
trace_pipe("ed!");
|
||||
|
||||
/* have we already tried to rescheule ? */
|
||||
if (reschedule++)
|
||||
if (!reschedule) {
|
||||
reschedule++;
|
||||
trace_pipe("edr");
|
||||
edf_reschedule(task, current);
|
||||
else {
|
||||
} else {
|
||||
/* reschedule failed */
|
||||
list_item_del(&task->list);
|
||||
task->state = TASK_STATE_CANCEL;
|
||||
|
|
Loading…
Reference in New Issue