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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:64744669777839a83a98b632c8be1f4cb520ae75)
Merged-In: I6bdab200802d399b0bf1206534d141a15e02b28a
Change-Id: I6bdab200802d399b0bf1206534d141a15e02b28a
This commit is contained in:
Rick Yiu 2024-09-16 08:24:58 +00:00 committed by Android Build Coastguard Worker
parent 1b1ca760de
commit 4a4decce0e

View file

@ -398,7 +398,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
@ -412,11 +411,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
@ -425,6 +434,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"
], ],
@ -435,6 +445,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
@ -549,6 +560,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",
@ -1058,12 +1078,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",
@ -1134,6 +1148,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",
@ -1142,9 +1162,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",