mirror of
https://github.com/openharmony/kernel_linux_common_modules.git
synced 2026-08-27 01:31:36 -04:00
!161 avoid rt qos
Merge pull request !161 from xushengbin/OpenHarmony-5.0.3-Release
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -72,6 +72,7 @@ enum auth_err_no {
|
||||
PID_DUPLICATE,
|
||||
PID_NOT_EXIST,
|
||||
INVALID_AUTH,
|
||||
ALREADY_RT_TASK,
|
||||
QOS_THREAD_NUM_EXCEED_LIMIT,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user