summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2017-04-26 21:42:10 +0200
committerChristopher N. Hesse <raymanfx@gmail.com>2017-05-06 20:27:04 +0000
commit5eca5aa5657712576864e2afeb0a8ece63448d34 (patch)
treeed4e73bf2f13ac7e5f818df7df0d503dbe64cf37
parent8920be7d43985aa35f92fcb77445b4ace901b011 (diff)
downloadandroid_hardware_samsung-5eca5aa5657712576864e2afeb0a8ece63448d34.tar.gz
android_hardware_samsung-5eca5aa5657712576864e2afeb0a8ece63448d34.tar.bz2
android_hardware_samsung-5eca5aa5657712576864e2afeb0a8ece63448d34.zip
power: Allow POWER_HINT_LOW_POWER hint to disable power save mode
Change-Id: I3b4c90f05267ca4182187361e5d373adb6de25d7
-rw-r--r--power/power.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/power/power.c b/power/power.c
index 54edcf2..ce78be5 100644
--- a/power/power.c
+++ b/power/power.c
@@ -427,7 +427,8 @@ static void samsung_power_hint(struct power_module *module,
int len;
/* Bail out if low-power mode is active */
- if (current_power_profile == PROFILE_POWER_SAVE && hint != POWER_HINT_SET_PROFILE) {
+ if (current_power_profile == PROFILE_POWER_SAVE && hint != POWER_HINT_LOW_POWER
+ && hint != POWER_HINT_SET_PROFILE) {
ALOGW("%s: PROFILE_POWER_SAVE active, ignoring hint %d", __func__, hint);
return;
}