summaryrefslogtreecommitdiff
path: root/src/arch/x86/boot/acpi.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-06-19 19:45:40 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-06-20 19:52:40 +0200
commit4d9b77287e583c89fea4bac9f1c264b01dcab981 (patch)
tree430fd7d4a7e3c44a75b14d070efea3f9fb7aa838 /src/arch/x86/boot/acpi.c
parent6722f8da400ccb5553afe745ff71475c50d60f52 (diff)
ACPI: Add acpi_is_wakeup_s3()
Test explicitly for S3 resume. Also switch to use IS_ENABLED(). Change-Id: I17ea729f51f99ea8d6135f2c7a807623f1286238 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/6070 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/arch/x86/boot/acpi.c')
-rw-r--r--src/arch/x86/boot/acpi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/x86/boot/acpi.c b/src/arch/x86/boot/acpi.c
index 6c1788d524..012c10127f 100644
--- a/src/arch/x86/boot/acpi.c
+++ b/src/arch/x86/boot/acpi.c
@@ -651,6 +651,11 @@ int acpi_is_wakeup(void)
return (acpi_slp_type == 3 || acpi_slp_type == 2);
}
+int acpi_is_wakeup_s3(void)
+{
+ return (acpi_slp_type == 3);
+}
+
void acpi_fail_wakeup(void)
{
if (acpi_slp_type == 3 || acpi_slp_type == 2)