cleancode

Signed-off-by: c459517356 <caozhijun12@huawei.com>
This commit is contained in:
c459517356
2023-06-30 16:50:29 +08:00
parent 091d9cc842
commit 567eb1632b
4 changed files with 14 additions and 2 deletions
@@ -32,6 +32,7 @@ namespace {
static std::string configFilePath = "/system/etc/frame_aware_sched/hwrme.xml"; // need To check the exact file path.
}
using namespace std;
using namespace QosCommon;
DEFINE_RMELOG_INTELLISENSE("ueaServer-IntelliSenseServer");
IMPLEMENT_SINGLE_INSTANCE(IntelliSenseServer);
+5
View File
@@ -15,6 +15,9 @@
#ifndef QOS_COMMON_H
#define QOS_COMMON_H
namespace OHOS {
namespace QosCommon {
constexpr int NR_QOS = 6;
constexpr int QOS_NICE_FLAG = 0x01;
constexpr int QOS_LATENCY_NICE_FLAG = 0x02;
@@ -98,4 +101,6 @@ int QosApplyForThread(int level, int tid);
int QosLeaveForThread(int tid);
int QosPolicy(struct QosPolicyDatas *policyDatas);
} // namespace QosCommon
} // namespace OHOS
#endif // QOS_COMMON_H
+7 -1
View File
@@ -22,6 +22,9 @@
constexpr unsigned int AF_QOS_DELEGATED = 0x0001;
namespace OHOS {
namespace QosCommon {
DEFINE_RMELOG_INTELLISENSE("qos_manager");
static int TrivalOpenQosCtrlNode(void)
@@ -178,4 +181,7 @@ int QosPolicy(struct QosPolicyDatas *policyDatas)
}
close(fd);
return ret;
}
}
} // namespace QosCommon
} // namespace OHOS
+1 -1
View File
@@ -23,7 +23,7 @@ constexpr int ERROR_NUM = -1;
namespace OHOS {
namespace QOS {
using namespace QosCommon;
DEFINE_RMELOG_INTELLISENSE("qos_manager");
static struct QosPolicyDatas g_defaultPolicy = {