summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2018-11-30 13:39:22 +0800
committerdianlujitao <dianlujitao@lineageos.org>2018-11-30 17:13:44 +0800
commit1a2785e9c7f0ad8882c1f0af45e43b28045fe35e (patch)
treecda97db08618892cfd29dfd6869ae51a144a3471
parent9e84f10386cb5ce6b92815549ffdb48d03d77a5a (diff)
downloadandroid_hardware_qcom_power-1a2785e9c7f0ad8882c1f0af45e43b28045fe35e.tar.gz
android_hardware_qcom_power-1a2785e9c7f0ad8882c1f0af45e43b28045fe35e.tar.bz2
android_hardware_qcom_power-1a2785e9c7f0ad8882c1f0af45e43b28045fe35e.zip
power: Drop default POWER_HINT_INTERACTION routine
* These boost resources were introduced years ago and are no longer suitable for modern SoCs. Each SoC should implement its own boost resource in either platform specific power HAL source file or perf HAL. * Starting from LineageOS 15.1, recent SoCs no longer handle POWER_HINT_INTERACTION in the power HAL, so power_hint_override returns HINT_NONE and the default routine is always executed. E.g, on msm8996 little cluster is always boosted to max frequency on touch, which causes a huge battery drain. * As a bonus, the "Failed to apply optimization" errors are gone. Change-Id: I322f23f40fc5da7485f2c7a6cf8ee952d0fb94c6
-rw-r--r--power-helper.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/power-helper.c b/power-helper.c
index 59f3ab7..7c3b147 100644
--- a/power-helper.c
+++ b/power-helper.c
@@ -277,14 +277,6 @@ void power_hint(power_hint_t hint, void *data)
case POWER_HINT_VR_MODE:
ALOGI("VR mode power hint not handled in power_hint_override");
break;
- case POWER_HINT_INTERACTION:
- {
- int resources[] = {0x702, 0x20F, 0x30F};
- int duration = 3000;
-
- interaction(duration, sizeof(resources)/sizeof(resources[0]), resources);
- }
- break;
case POWER_HINT_VIDEO_ENCODE:
process_video_encode_hint(data);
break;