From a09a520acebb8c3616278aef6cc24e7c1046be9b Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Wed, 9 Aug 2023 15:55:09 -0700 Subject: [PATCH] powerhint: disable prefer_idle in game mode Test: Load powerhint file on device and verify tuned parameters are default. Start Subway Surfers game and verify tuned parameters are expected tuned values. Switch away from game, and quit the game, and verify tuned parameters return to default. Bug: 294612493 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4bc3b180c79522c8fd57e397631fcef291b60df6) Merged-In: I2c518b27fbe7191dd1033dd3f3d8044330ccdf8c Change-Id: I2c518b27fbe7191dd1033dd3f3d8044330ccdf8c --- perf/powerhint-husky.json | 12 ++++++++++++ perf/powerhint-ripcurrent.json | 12 ++++++++++++ perf/powerhint-shiba.json | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/perf/powerhint-husky.json b/perf/powerhint-husky.json index 8bc44d8..ff5953c 100644 --- a/perf/powerhint-husky.json +++ b/perf/powerhint-husky.json @@ -2421,6 +2421,18 @@ "Duration": 0, "Value": "3000" }, + { + "PowerHint": "GAME", + "Node": "TAPreferIdle", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "GAME", + "Node": "FGPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", "Node": "PMU_POLL", diff --git a/perf/powerhint-ripcurrent.json b/perf/powerhint-ripcurrent.json index 1e97a44..60116ee 100644 --- a/perf/powerhint-ripcurrent.json +++ b/perf/powerhint-ripcurrent.json @@ -2139,6 +2139,18 @@ "Duration": 0, "Value": "3000" }, + { + "PowerHint": "GAME", + "Node": "TAPreferIdle", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "GAME", + "Node": "FGPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", "Node": "PMU_POLL", diff --git a/perf/powerhint-shiba.json b/perf/powerhint-shiba.json index d754ab4..3c5d1f6 100644 --- a/perf/powerhint-shiba.json +++ b/perf/powerhint-shiba.json @@ -2313,6 +2313,18 @@ "Duration": 0, "Value": "3000" }, + { + "PowerHint": "GAME", + "Node": "TAPreferIdle", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "GAME", + "Node": "FGPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "GAME", "Node": "VIRTUAL-SKIN-CPU-MID",