BACKPORT: acpi: split resume check and actual resume code
It's helpful to provide a distinct state that affirmatively describes that OS resume will occur. The previous code included the check and the actual resuming in one function. Because of this grouping one had to annotate the innards of the ACPI resume path to perform specific actions before OS resume. By providing a distinct state in the boot state machine the necessary actions can be scheduled accordingly without modifying the ACPI code. Change-Id: I298f0f1c1aa6ee62fee0067a53dc021fe07044dc Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/49742 Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
d9f0d0e455
commit
92a28f87d9
4 changed files with 39 additions and 28 deletions
|
|
@ -96,6 +96,7 @@ typedef enum {
|
|||
BS_DEV_ENABLE,
|
||||
BS_DEV_INIT,
|
||||
BS_POST_DEVICE,
|
||||
BS_OS_RESUME_CHECK,
|
||||
BS_OS_RESUME,
|
||||
BS_WRITE_TABLES,
|
||||
BS_PAYLOAD_LOAD,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue