From a21878ca31be652d214a7dfc5100ca51d28c9326 Mon Sep 17 00:00:00 2001 From: bengris32 Date: Sat, 18 Feb 2023 11:40:46 +0100 Subject: [PATCH] rosemary: Don't hold `sched_boost` at max when unneeded * Current powerhint configuration would cause sched_boost to always be set to the max value (6) even when the device is idle and not doing anything. * Instead, we should only apply it when the device is being used, so have it default to 0, 3 when interaction boosting, and 6 when launching apps. Change-Id: Ic5d60c14a1313b9df27e6796e5a0bddc71aecef0 --- configs/powerhint.json | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index 10cb0a5..8bdbfee 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -249,9 +249,9 @@ "Name": "CPUSchedBoost", "Path": "/sys/devices/system/cpu/sched/sched_boost", "Values": [ - "0", + "6", "3", - "6" + "0" ], "ResetOnInit": true }, @@ -439,6 +439,12 @@ "Duration": 0, "Value": "2050000" }, + { + "PowerHint": "INTERACTION", + "Node": "CPUSchedBoost", + "Duration": 0, + "Value": "3" + }, { "PowerHint": "INTERACTION", "Node": "TASchedtuneBoost", @@ -517,6 +523,12 @@ "Duration": 5000, "Value": "2000000" }, + { + "PowerHint": "LAUNCH", + "Node": "CPUSchedBoost", + "Duration": 5000, + "Value": "6" + }, { "PowerHint": "LAUNCH", "Node": "PMQoSCpuDmaLatency",