mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
power: Allow POWER_HINT_LOW_POWER hint to disable power save mode
Change-Id: I3b4c90f05267ca4182187361e5d373adb6de25d7
This commit is contained in:
parent
8920be7d43
commit
5eca5aa565
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue