aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-06-18 08:28:12 +0300
committerAngel Pons <th3fanbus@gmail.com>2020-07-28 10:37:28 +0000
commita4c0e1a51fc724680cb54a1f17813a67ab3b4250 (patch)
tree2f55b1fc4476c28880097c2c6f6ce11204259b11 /src/lib
parent470f319b9b33283fb85b466566410a1f4365e51c (diff)
ACPI S3: Clean up resume path
Remove the obscure path in source code, where ACPI S3 resume was prohibited and acpi_resume() would return and continue to BS_WRITE_TABLES. The condition when ACPI S3 would be prohibited needs to be checked early in romstage already. For the time being, there has been little interest to have CMOS option to disable ACPI S3 resume feature. Change-Id: If5105912759427f94f84d46d1a3141aa75cbd6ef Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42498 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/hardwaremain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c
index 4276027a9f..3fe50c9bb6 100644
--- a/src/lib/hardwaremain.c
+++ b/src/lib/hardwaremain.c
@@ -169,9 +169,9 @@ static boot_state_t bs_os_resume(void *wake_vector)
if (CONFIG(HAVE_ACPI_RESUME)) {
arch_bootstate_coreboot_exit();
acpi_resume(wake_vector);
+ /* We will not come back. */
}
-
- return BS_WRITE_TABLES;
+ die("Failed OS resume\n");
}
static boot_state_t bs_write_tables(void *arg)