Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
entity_tick() will be called to check preemption by calculating each sched_entity's time_slice in a task group tree from bottom to top. If a need_resched_flag is set by a checking of a sched_entity, there is no necessary to check preemption of the sched_entity's parent and ancestor entity. So we can test if the need_resched_flag has been set before calling check_preempt_tick() to avoid unnecessary calculations. Signed-off-by: zhangpeng.00 <zhangpeng.00@bytedance.com>
- Loading branch information