Powerhint tuning for photo capture
UClamp.min of all threads in top app is set to mid core max capacity during photo capture, which will dispatch them to big core. Critical threads of photo capture will be interrupted due to their lower priority, while other cores idle. To deal with this situation, prefer_idle mask to big/mid cores can reduce the idle in mid cores. UClamp.min on nice can set UClamp.min of photo capture critical threads to mid core max capacity, while others as zero, this can make critical threads run on big core without frequently interrupted. By applying this, photo capture latency can be reduced with slight change of power consumption. Refer to ag/28118299 Bug: 345601796 Test: Build pass, Boot to home Flag: NONE powerhint change does not support flags Change-Id: I7d6d0c5c23aaf7888a64ecbafde2275129fd22a1
This commit is contained in:
parent
effd8c87a7
commit
4080c0deea
1 changed files with 88 additions and 1 deletions
|
@ -274,6 +274,42 @@
|
||||||
],
|
],
|
||||||
"ResetOnInit": true
|
"ResetOnInit": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Name": "TAUclampMinOnNiceEnable",
|
||||||
|
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_enable",
|
||||||
|
"Values": [
|
||||||
|
"1",
|
||||||
|
"0"
|
||||||
|
],
|
||||||
|
"ResetOnInit": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "TAUclampMinOnNiceMidValue",
|
||||||
|
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value",
|
||||||
|
"Values": [
|
||||||
|
"600",
|
||||||
|
"0"
|
||||||
|
],
|
||||||
|
"ResetOnInit": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "TAUclampMinOnNiceHighPrio",
|
||||||
|
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio",
|
||||||
|
"Values": [
|
||||||
|
"119",
|
||||||
|
"120"
|
||||||
|
],
|
||||||
|
"ResetOnInit": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "TAUclampMinOnNiceMidPrio",
|
||||||
|
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio",
|
||||||
|
"Values": [
|
||||||
|
"128",
|
||||||
|
"130"
|
||||||
|
],
|
||||||
|
"ResetOnInit": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Name": "FGUClampBoost",
|
"Name": "FGUClampBoost",
|
||||||
"Path": "/proc/vendor_sched/groups/fg/uclamp_min",
|
"Path": "/proc/vendor_sched/groups/fg/uclamp_min",
|
||||||
|
@ -390,6 +426,7 @@
|
||||||
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
|
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
|
||||||
"Values": [
|
"Values": [
|
||||||
"0xff",
|
"0xff",
|
||||||
|
"0xf0",
|
||||||
"0x7f"
|
"0x7f"
|
||||||
],
|
],
|
||||||
"ResetOnInit": true
|
"ResetOnInit": true
|
||||||
|
@ -399,6 +436,7 @@
|
||||||
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid",
|
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_mid",
|
||||||
"Values": [
|
"Values": [
|
||||||
"0xff",
|
"0xff",
|
||||||
|
"0xf0",
|
||||||
"0x7f"
|
"0x7f"
|
||||||
],
|
],
|
||||||
"ResetOnInit": true
|
"ResetOnInit": true
|
||||||
|
@ -408,6 +446,7 @@
|
||||||
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low",
|
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_low",
|
||||||
"Values": [
|
"Values": [
|
||||||
"0xff",
|
"0xff",
|
||||||
|
"0xf0",
|
||||||
"0x7f"
|
"0x7f"
|
||||||
],
|
],
|
||||||
"ResetOnInit": true
|
"ResetOnInit": true
|
||||||
|
@ -1515,10 +1554,58 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
|
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
|
||||||
"Node": "TAUClampBoost",
|
"Node": "ReducePreferIdle",
|
||||||
|
"Duration": 3000,
|
||||||
|
"Value": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
|
||||||
|
"Node": "TAPreferredIdleMaskHigh",
|
||||||
|
"Duration": 3000,
|
||||||
|
"Value": "0xf0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
|
||||||
|
"Node": "TAPreferredIdleMaskMid",
|
||||||
|
"Duration": 3000,
|
||||||
|
"Value": "0xf0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
|
||||||
|
"Node": "TAPreferredIdleMaskLow",
|
||||||
|
"Duration": 3000,
|
||||||
|
"Value": "0xf0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
|
||||||
|
"Node": "TAUclampMinOnNiceEnable",
|
||||||
|
"Duration": 3000,
|
||||||
|
"Value": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
|
||||||
|
"Node": "TAUclampMinOnNiceMidValue",
|
||||||
"Duration": 3000,
|
"Duration": 3000,
|
||||||
"Value": "600"
|
"Value": "600"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
|
||||||
|
"Node": "TAUclampMinOnNiceHighPrio",
|
||||||
|
"Duration": 3000,
|
||||||
|
"Value": "119"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
|
||||||
|
"Node": "TAUclampMinOnNiceMidPrio",
|
||||||
|
"Duration": 3000,
|
||||||
|
"Value": "128"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE",
|
||||||
|
"Node": "TAPreferIdle",
|
||||||
|
"Duration": 3000,
|
||||||
|
"Value": "1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"PowerHint": "CAMERA_THERMAL_SEVERE_BOOST",
|
"PowerHint": "CAMERA_THERMAL_SEVERE_BOOST",
|
||||||
"Node": "CDPreferHighCap",
|
"Node": "CDPreferHighCap",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue