Commit a3c9f2da authored by Zhang Qiao's avatar Zhang Qiao Committed by Wenyu Huang
Browse files

sched: Introduce handle priority reversion mechanism

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


CVE: NA

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

When online tasks occupy cpu long time, offline task will not get cpu
to run, the priority inversion issue may be triggered in this case.
If the above case occurs, we will unthrottle offline tasks and let its
get a chance to run.
When online tasks occupy cpu over 5s(defaule value), we will unthrottle
offline tasks and enter a msleep loop before exit to usermode util the
cpu goto idle.

Signed-off-by: default avatarZhang Qiao <zhangqiao22@huawei.com>
Signed-off-by: default avatarWenyu Huang <huangwenyu5@huawei.com>
parent 1fe7493d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment