remove qos log print to fix disable preempt problem

Signed-off-by: lingqiwei <lingqiwei1@h-partners.com>
This commit is contained in:
lingqiwei
2026-08-10 11:47:00 +08:00
committed by lingqiwei
parent b76d914d0f
commit 616aa9a0b2
2 changed files with 1 additions and 11 deletions
-4
View File
@@ -532,7 +532,6 @@ bool check_authorized(unsigned int func_id, unsigned int type)
mutex_lock(&ua_idr_mutex);
if (!ua_idr) {
mutex_unlock(&ua_idr_mutex);
pr_err("[AUTH_CTRL] authority idr table missed, auth failed\n");
return authorized;
}
@@ -540,11 +539,9 @@ bool check_authorized(unsigned int func_id, unsigned int type)
if (!auth) {
if (uid != SUPER_UID) {
mutex_unlock(&ua_idr_mutex);
pr_err("[AUTH_CTRL] no auth data for this pid = %d\n, tgid");
return authorized;
} else if (init_super_authority(tgid)) {
mutex_unlock(&ua_idr_mutex);
pr_err("[AUTH_CTRL] init super authority failed\n");
return authorized;
}
@@ -560,7 +557,6 @@ bool check_authorized(unsigned int func_id, unsigned int type)
mutex_lock(&auth->mutex);
if (auth->status == AUTH_STATUS_DEAD) {
mutex_unlock(&auth->mutex);
pr_info("[AUTH_CTRL] not valid auth for pid %d\n", tgid);
put_auth_struct(auth);
return authorized;
}
+1 -7
View File
@@ -492,7 +492,7 @@ static long ctrl_qos_operation(int abi, void __user *uarg)
int ret = -1;
#pragma GCC diagnostic push
#pragma GCC diagonstic ignored "-Wpointer-to-int-cast"
#pragma GCC diagnostic ignored "-Wpointer-to-int-cast"
switch (abi) {
case QOS_IOCTL_ABI_ARM32:
@@ -712,25 +712,19 @@ long do_qos_ctrl_ioctl(int abi, struct file *file, unsigned int cmd, unsigned lo
unsigned int func_cmd = _IOC_NR(cmd);
if (uarg == NULL) {
pr_err("%s: invalid user uarg\n", __func__);
return -EINVAL;
}
if (_IOC_TYPE(cmd) != QOS_CTRL_IPC_MAGIG) {
pr_err("%s: qos ctrl magic fail, TYPE=%d\n",
__func__, _IOC_TYPE(cmd));
return -EINVAL;
}
if (func_cmd >= QOS_CTRL_MAX_NR) {
pr_err("%s: qos ctrl cmd error, cmd:%d\n",
__func__, _IOC_TYPE(cmd));
return -EINVAL;
}
#ifdef CONFIG_QOS_AUTHORITY
if (!check_authorized(func_cmd, QOS_AUTH_FLAG)) {
pr_err("[QOS_CTRL] %s: pid not authorized\n", __func__);
return -PID_NOT_AUTHORIZED;
}
#endif