mirror of
https://github.com/openharmony/frame_aware_sched.git
synced 2026-06-30 22:08:38 -04:00
Adjusting the CPU Frequency
Signed-off-by: c459517356 <caozhijun12@huawei.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user