mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
lm4: Fixes low power bug after a sysjump
This fixes a bug in which after a sysjump, the sleep_mask is reset, and the EC is allowed to go into a low power mode even though the AP is still running. This causes numerous problems, must notable of which is that a flashrom write fails with an EC protocol mismatch error. BUG=chrome-os-partner:23645 BRANCH=none TEST=Execute a flashrom write and make sure the system does not use the low power code immediately after. Change-Id: I4d50282da0c5ba5b6488ed14a267a4d8cafe09a7 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/174943 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
fea89f9cd9
commit
7e78087a91
@@ -129,6 +129,8 @@ enum x86_state x86_chipset_init(void)
|
||||
*/
|
||||
if (system_jumped_to_this_image()) {
|
||||
if ((x86_get_signals() & IN_ALL_S0) == IN_ALL_S0) {
|
||||
/* Disable idle task deep sleep when in S0. */
|
||||
disable_sleep(SLEEP_MASK_AP_RUN);
|
||||
CPRINTF("[%T x86 already in S0]\n");
|
||||
return X86_S0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user