Change restricted cpuset dynamically
Currently framework put tasks into restricted cpuset group when display is off. However, when unlocking screen, SystemUI still runs in restricted cpuset group leading to jank and delayed UDFPS action. This CL mitigates problem by dynamically changing restricted cpuset group to all cpus when display is back on. Bug: 217481359 Test: Build Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I2155a81e68745df6a86d405eccb4952a432b6906
This commit is contained in:
parent
90237b7f47
commit
e14219d95d
2 changed files with 42 additions and 0 deletions
|
@ -189,6 +189,15 @@
|
|||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "RestrictedCpuset",
|
||||
"Path": "/dev/cpuset/restricted/cpus",
|
||||
"Values": [
|
||||
"0-3",
|
||||
"0-7"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CDHighCpusetCpus",
|
||||
"Path": "/dev/cpuset/camera-daemon-high-group/cpus",
|
||||
|
@ -1308,6 +1317,18 @@
|
|||
"Node": "MLUclampBoost",
|
||||
"Duration": 2000,
|
||||
"Value": "512"
|
||||
},
|
||||
{
|
||||
"PowerHint": "DEVICE_IDLE",
|
||||
"Node": "RestrictedCpuset",
|
||||
"Duration": 0,
|
||||
"Value": "0-3"
|
||||
},
|
||||
{
|
||||
"PowerHint": "DISPLAY_INACTIVE",
|
||||
"Node": "RestrictedCpuset",
|
||||
"Duration": 0,
|
||||
"Value": "0-3"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -190,6 +190,15 @@
|
|||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "RestrictedCpuset",
|
||||
"Path": "/dev/cpuset/restricted/cpus",
|
||||
"Values": [
|
||||
"0-3",
|
||||
"0-7"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CDHighCpusetCpus",
|
||||
"Path": "/dev/cpuset/camera-daemon-high-group/cpus",
|
||||
|
@ -1325,6 +1334,18 @@
|
|||
"Node": "MLUclampBoost",
|
||||
"Duration": 2000,
|
||||
"Value": "512"
|
||||
},
|
||||
{
|
||||
"PowerHint": "DEVICE_IDLE",
|
||||
"Node": "RestrictedCpuset",
|
||||
"Duration": 0,
|
||||
"Value": "0-3"
|
||||
},
|
||||
{
|
||||
"PowerHint": "DISPLAY_INACTIVE",
|
||||
"Node": "RestrictedCpuset",
|
||||
"Duration": 0,
|
||||
"Value": "0-3"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue