diff options
Diffstat (limited to 'common/system.c')
-rw-r--r-- | common/system.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/common/system.c b/common/system.c index 9b0e6f25a0..013452c21a 100644 --- a/common/system.c +++ b/common/system.c @@ -12,7 +12,6 @@ #include "console.h" #include "cpu.h" #include "cros_board_info.h" -#include "ec_version.h" #include "dma.h" #include "extpower.h" #include "flash.h" @@ -1056,13 +1055,12 @@ void system_enter_hibernate(uint32_t seconds, uint32_t microseconds) * On ChromeOS devices, if AC is present, don't hibernate. * It might trigger an immediate wake up (since AC is present), * resulting in an AP reboot. - * Hibernate when AC is present never occurs in normal circumstantces, + * Hibernate when AC is present never occurs in normal circumstances, * this is to prevent an action triggered by developers. * See: b/192259035 */ - if (IS_ENABLED(CONFIG_EXTPOWER) && - (IS_ENABLED(HAS_TASK_CHIPSET) || IS_ENABLED(CONFIG_AP_PWRSEQ)) && - extpower_is_present()) { + if (IS_ENABLED(CONFIG_EXTPOWER) && IS_ENABLED(CONFIG_AP_POWER_CONTROL) + && extpower_is_present()) { CPRINTS("AC on, skip hibernate"); return; } |