avoid rt qos

Signed-off-by: xushengbin <xushengbin2@huawei.com>
This commit is contained in:
xushengbin
2025-05-23 02:42:10 +00:00
committed by Gitee
parent 534aecac06
commit cc76737448
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -256,6 +256,12 @@ int qos_apply(struct qos_ctrl_data *data)
qts = (struct qos_task_struct *) &p->qts;
if (rt_task(p) && qts->in_qos == NO_QOS) {
pr_err("[QOS_CTRL] can not apply qos for native rt task\n");
ret = -ALREADY_RT_TASK;
goto out_unlock;
}
/* effective qos must in range [NO_QOS, NR_QOS) */
if (qts->in_qos != NO_QOS) {
if (qts->in_qos == level) {
+1
View File
@@ -72,6 +72,7 @@ enum auth_err_no {
PID_DUPLICATE,
PID_NOT_EXIST,
INVALID_AUTH,
ALREADY_RT_TASK,
QOS_THREAD_NUM_EXCEED_LIMIT,
};