Adjusting the CPU Frequency

Signed-off-by: c459517356 <caozhijun12@huawei.com>
This commit is contained in:
c459517356
2023-08-22 17:41:38 +08:00
parent 88dce2c149
commit f7821ef0f9
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -80,6 +80,7 @@ enum rtg_sched_cmdid {
LIST_RTG_THREAD,
SEARCH_RTG,
GET_ENABLE,
SET_MAX_UTIL,
RTG_CTRL_MAX_NR,
};
@@ -97,6 +98,7 @@ extern "C" {
int EndFrameFreq(int grpId);
int EndScene(int grpId);
int SetMinUtil(int grpId, int stateParam);
int SetMaxUtil(int grpId, int stateParam);
int SetMargin(int grpId, int stateParam);
int ListRtgThread(int grpId, vector<int> *rs); // list all tasks of grpId;
int ListRtgGroup(vector<int> *rs);
@@ -52,6 +52,8 @@ const char RTG_SCHED_IPC_MAGIC = 0xAB;
_IOWR(RTG_SCHED_IPC_MAGIC, END_SCENE, struct proc_state_data)
#define CMD_ID_SET_MIN_UTIL \
_IOWR(RTG_SCHED_IPC_MAGIC, SET_MIN_UTIL, struct proc_state_data)
#define CMD_ID_SET_MAX_UTIL \
_IOWR(RTG_SCHED_IPC_MAGIC, SET_MAX_UTIL, struct proc_state_data)
#define CMD_ID_SET_MARGIN \
_IOWR(RTG_SCHED_IPC_MAGIC, SET_MARGIN, struct proc_state_data)
#define CMD_ID_LIST_RTG \
@@ -352,6 +354,11 @@ int SetMinUtil(int grpId, int stateParam)
return ret;
}
int SetMaxUtil(int grpId, int stateParam)
{
return 0;
}
int SetMargin(int grpId, int stateParam)
{
int ret = 0;