Despite not finding target_cpu, there was a hole to include the task in ontime.
The code to defenc it is added.
Change-Id: Ibf6aec93eedd2d7f8c9f45e2e4acc26705733838
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
u64 delta;
int target_cpu = -1;
+ /* When wakeup task is on ontime migrating, do not ontime wakeup */
+ if (ontime_flag(p) == ONTIME_MIGRATING)
+ return -1;
+
/*
* When wakeup task satisfies ontime condition to up migration,
* check there is a possible target cpu.
goto ontime_out;
}
+ if (!cpu_selected(target_cpu))
+ goto ontime_out;
+
ontime_up:
include_ontime_task(p, target_cpu);