mirror of
https://github.com/openharmony/frame_aware_sched.git
synced 2026-07-01 22:04:00 -04:00
@@ -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);
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user