[coreboot-gerrit] Change in coreboot[master]: arch/x86: Make acpi_get_sleep_type function available in romstage

Subrata Banik (Code Review) gerrit at coreboot.org
Mon Sep 4 15:34:36 CEST 2017


Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/21387


Change subject: arch/x86: Make acpi_get_sleep_type function available in romstage
......................................................................

arch/x86: Make acpi_get_sleep_type function available in romstage

acpi_is_wakeup_s3() function is available in both romstage and
ramstage (include/arch/acpi.h) but helper function
acpi_get_sleep_type() is only available during ramstage(ENV_RAMSTAGE).

This patch to make acpi_get_sleep_type() available in romstage
as well.

Change-Id: Iac8d143903996e5fc1a89d73c6735811a2e7395f
Signed-off-by: Subrata Banik <subrata.banik at intel.com>
---
M src/arch/x86/acpi_s3.c
1 file changed, 5 insertions(+), 5 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/87/21387/1

diff --git a/src/arch/x86/acpi_s3.c b/src/arch/x86/acpi_s3.c
index a0a7905..cfca362 100644
--- a/src/arch/x86/acpi_s3.c
+++ b/src/arch/x86/acpi_s3.c
@@ -25,11 +25,6 @@
 #include <rules.h>
 #include <symbols.h>
 
-#if ENV_RAMSTAGE
-
-/* This is filled with acpi_is_wakeup() call early in ramstage. */
-static int acpi_slp_type = -1;
-
 #if IS_ENABLED(CONFIG_EARLY_CBMEM_INIT)
 int acpi_get_sleep_type(void)
 {
@@ -42,6 +37,11 @@
 }
 #endif
 
+#if ENV_RAMSTAGE
+
+/* This is filled with acpi_is_wakeup() call early in ramstage. */
+static int acpi_slp_type = -1;
+
 static void acpi_handoff_wakeup(void)
 {
 	if (acpi_slp_type < 0)

-- 
To view, visit https://review.coreboot.org/21387
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iac8d143903996e5fc1a89d73c6735811a2e7395f
Gerrit-Change-Number: 21387
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170904/7f0f1cd6/attachment.html>


More information about the coreboot-gerrit mailing list