From 5eca5aa5657712576864e2afeb0a8ece63448d34 Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Wed, 26 Apr 2017 21:42:10 +0200 Subject: [PATCH] power: Allow POWER_HINT_LOW_POWER hint to disable power save mode Change-Id: I3b4c90f05267ca4182187361e5d373adb6de25d7 --- power/power.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/power/power.c b/power/power.c index 54edcf2d..ce78be5a 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; }