diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-01-09 12:37:25 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-01-26 00:17:38 +0000 |
commit | 9e591c409a3e3264f54a3784b0891a7f27dd52d8 (patch) | |
tree | 80f2cbf10a4e5fff5030ee0d4704a6cc019af01c /src/soc/amd/stoneyridge/include | |
parent | f9acd37d7f15290240d4fb9e365a7b79af57b925 (diff) |
soc/amd: Refactor some ACPI S3 calls
Do not pass ACPI S3 state as a parameter, by locally
calling acpi_is_wakeup_s3() compiler has better chance
for optimizing HAVE_ACPI_RESUME=n case.
Test for acpi_s3_allowed() is already included in the
implementation of acpi_is_wakeup_s3() and is removed
as redunandant.
For ramstage, acpi_is_wakeup_s3() evaluates to
romstage_handoff_if_resume().
Change-Id: I6c1e00ec3d5be9a47b9d911c73965bc0c2b17624
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49838
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/stoneyridge/include')
-rw-r--r-- | src/soc/amd/stoneyridge/include/soc/romstage.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/soc/amd/stoneyridge/include/soc/romstage.h b/src/soc/amd/stoneyridge/include/soc/romstage.h deleted file mode 100644 index 1cbaeec831..0000000000 --- a/src/soc/amd/stoneyridge/include/soc/romstage.h +++ /dev/null @@ -1,8 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef AMD_STONEYRIDGE_ROMSTAGE_H -#define AMD_STONEYRIDGE_ROMSTAGE_H - -void mainboard_romstage_entry_s3(int s3_resume); - -#endif /* AMD_STONEYRIDGE_ROMSTAGE_H */ |