summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2018-11-30 13:39:22 +0800
committerMichael Bestas <mkbestas@lineageos.org>2019-10-23 01:12:56 +0300
commitf906ae2e7abb86978c77f8e449146343eba7cbb9 (patch)
tree15d7908614d0bb420d05d4d58117696d9f274e3a
parent9bb7f33948807f7c1c6b3131b22a15e21b2a8e61 (diff)
downloadvendor_qcom_opensource_power-f906ae2e7abb86978c77f8e449146343eba7cbb9.tar.gz
vendor_qcom_opensource_power-f906ae2e7abb86978c77f8e449146343eba7cbb9.tar.bz2
vendor_qcom_opensource_power-f906ae2e7abb86978c77f8e449146343eba7cbb9.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-common.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/power-common.c b/power-common.c
index c820972..23fd823 100644
--- a/power-common.c
+++ b/power-common.c
@@ -74,12 +74,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;
// fall through below, hints will fail if not defined in powerhint.xml
case POWER_HINT_SUSTAINED_PERFORMANCE:
case POWER_HINT_VIDEO_ENCODE: