Use auto prefer fit for launch

Enable auto prefer fit for high prio tasks when app launch, and tune
uclmap min settings for different task prio.

Bug: 353885521
Flag: NONE powerhint change does not support flags
Test: build pass
Change-Id: I28d8023d3bc8852d6bcb771c0b2338a15f97ca37
This commit is contained in:
Rick Yiu 2024-09-16 08:20:20 +00:00
parent f094becff4
commit 6832fe9387

View file

@ -333,7 +333,6 @@
"Path": "/proc/vendor_sched/groups/ta/uclamp_min", "Path": "/proc/vendor_sched/groups/ta/uclamp_min",
"Values": [ "Values": [
"765", "765",
"600",
"1" "1"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -347,11 +346,21 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAUclampMinOnNiceHighValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_value",
"Values": [
"765",
"0"
],
"ResetOnInit": true
},
{ {
"Name": "TAUclampMinOnNiceMidValue", "Name": "TAUclampMinOnNiceMidValue",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_value",
"Values": [ "Values": [
"600", "600",
"590",
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -360,6 +369,7 @@
"Name": "TAUclampMinOnNiceHighPrio", "Name": "TAUclampMinOnNiceHighPrio",
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_high_prio",
"Values": [ "Values": [
"110",
"119", "119",
"120" "120"
], ],
@ -370,6 +380,7 @@
"Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio", "Path": "/proc/vendor_sched/groups/ta/uclamp_min_on_nice_mid_prio",
"Values": [ "Values": [
"128", "128",
"139",
"130" "130"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -484,6 +495,15 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "TAAutoPreferFit",
"Path": "/proc/vendor_sched/groups/ta/auto_prefer_fit",
"Values": [
"1",
"0"
],
"ResetOnInit": true
},
{ {
"Name": "TAPreferredIdleMaskHigh", "Name": "TAPreferredIdleMaskHigh",
"Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high", "Path": "/proc/vendor_sched/groups/ta/preferred_idle_mask_high",
@ -1035,12 +1055,6 @@
"Duration": 5000, "Duration": 5000,
"Value": "512" "Value": "512"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "765"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "FGUClampBoost", "Node": "FGUClampBoost",
@ -1224,6 +1238,12 @@
"Duration": 5000, "Duration": 5000,
"Value": "1" "Value": "1"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAAutoPreferFit",
"Duration": 5000,
"Value": "1"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskHigh", "Node": "TAPreferredIdleMaskHigh",
@ -1232,9 +1252,33 @@
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskMid", "Node": "TAUclampMinOnNiceEnable",
"Duration": 5000, "Duration": 5000,
"Value": "0xff" "Value": "1"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighValue",
"Duration": 5000,
"Value": "765"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighPrio",
"Duration": 5000,
"Value": "110"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidValue",
"Duration": 5000,
"Value": "590"
},
{
"PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidPrio",
"Duration": 5000,
"Value": "139"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",