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@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)