mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 12:35:48 +00:00
Implement .sleep/.wake/.pick_next of sched_iorr. In .pick_next, we count current object's timeslice and pick the next avaiable one. The policy is 1) get the first item in runqueue firstly 2) if object picked has no time_cycles, replenish it pick this one 3) At least take one idle sched object if we have no runnable object after step 1) and 2) In .wake, we start the tick if we have more than one active thread_object in runqueue. In .sleep, stop the tick timer if necessary. Tracked-On: #4178 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Signed-off-by: Yu Wang <yu1.wang@intel.com> Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>