avoid rt qos

Signed-off-by: edwardcaoyue <caoyue24@huawei.com>
This commit is contained in:
edwardcaoyue
2025-03-13 21:58:05 +08:00
parent 25c3d60580
commit 5a9deebe20
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,
};