Commit 324e7c64 authored by Guan Jing's avatar Guan Jing Committed by Zhong Jinghua
Browse files

sched: programmable: Add hook for pick next task

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


CVE: NA

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

This hook point can change the position of se on the red-black tree,
eg:  in cloud scenarios, there will be online tasks that need to
respond in time and offline tasks that do not need to respond in time.
This hook point provides users with a way to customize that
Class tasks run first.
The basis for pick next task comes from system information,
such as the red-black tree, and so on… If the system
information of the CFS is modified, it will affect
the whole system. Therefore, the hook function is added here.
Only the position of the task on the red-black tree is modified,
and the value of vruntime is not changed.

Signed-off-by: default avatarGuan Jing <guanjing6@huawei.com>
Signed-off-by: default avatarHui Tang <tanghui20@huawei.com>
parent ee61845b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment