Update power hint for camera workload am: 637fc9e8d7

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14351582

Change-Id: If3e5d8ecd2d3729186127d0679563140dd709d0a
This commit is contained in:
Wei Wang 2021-05-10 18:48:38 +00:00 committed by Automerger Merge Worker
commit b6c46c01e3
3 changed files with 49 additions and 10 deletions

View file

@ -120,7 +120,7 @@ on init
# change permissions and default values for camera-daemon cpu controller
chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.min
chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.max
chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive
chown root root /dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive
chown system system /dev/cpuctl/camera-daemon/cgroup.procs
write /dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive 1
write /dev/cpuctl/camera-daemon/cpu.uclamp.min 1

View file

@ -105,6 +105,15 @@
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "CDLatencySensitive",
"Path": "/dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive",
"Values": [
"0",
"1"
],
"ResetOnInit": true
},
{
"Name": "F2fsRecessModeEnable",
"Path": "/dev/sys/fs/by-name/userdata/gc_urgent",
@ -123,6 +132,15 @@
],
"ResetOnInit": true
},
{
"Name": "HighCapacityStartCpu",
"Path": "/sys/kernel/vendor_sched/high_capacity_start_cpu",
"Values": [
"4",
"6"
],
"ResetOnInit": true
},
{
"Name": "LimitFlashCurrent",
"Path": "vendor.camera.max_flash_current",
@ -316,6 +334,18 @@
"Duration": 0,
"Value": "1826000"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "PreferHighCapEnable",
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "HighCapacityStartCpu",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPULittleClusterMaxFreq",
@ -334,6 +364,24 @@
"Duration": 0,
"Value": "20 10 80"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "PreferHighCapEnable",
"Duration": 0,
"Value": "1"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "HighCapacityStartCpu",
"Duration": 0,
"Value": "4"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CDLatencySensitive",
"Duration": 0,
"Value": "0"
},
{
"PowerHint": "CAMERA_STREAMING_STANDARD",
"Node": "CPUBigClusterMaxFreq",

View file

@ -10,15 +10,6 @@
"Controller": "cpu",
"Path": "top-app"
}
},
{
"Name": "WriteFile",
"Params":
{
"FilePath": "/sys/kernel/vendor_sched/set_prefer_high_cap",
"Value": "<pid>",
"LogFailures": "false"
}
}
]
},