提交 a2fa6f18 编写于 作者: R Ren Zhijie 提交者: Zheng Zengkai

sched: programmable: Fix sched bpf hook cfs_check_preempt_tick

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5KUFB
CVE: NA

--------------------------------

The logic of this hook is the same as that of the branch that
current sched entity delta_exec time bigger than ideal_runtime.

Fixes: 05661011fcac ("sched: cfs: add bpf hooks to control wakeup and tick preemption")
Signed-off-by: NRen Zhijie <renzhijie2@huawei.com>
上级 01267006
......@@ -4482,8 +4482,11 @@ check_preempt_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr)
if (ret < 0)
return;
else if (ret > 0)
else if (ret > 0) {
resched_curr(rq_of(cfs_rq));
clear_buddies(cfs_rq, curr);
return;
}
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册