ACPI S3 support: Add acpi_s3_resume_allowed()
commit2ca2afe760bf1f78ee410749332d85f9413a9f3a
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Tue, 17 Jun 2014 12:41:37 +0000 (17 15:41 +0300)
committerKyösti Mälkki <kyosti.malkki@gmail.com>
Fri, 20 Jun 2014 17:50:04 +0000 (20 19:50 +0200)
tree7040bede772c6b50ee00d6d04ff5205d70f77ccb
parentb3594ab4899aebf3883694fabe469a414dd9a799
ACPI S3 support: Add acpi_s3_resume_allowed()

Add this to reduce the amount of preprocessor conditionals used in the source,
compiler currently resolves this to a constant.

Once we have gone through all #if CONFIG_HAVE_ACPI_RESUME cases, we may change
the implementation to enable/disable S3 support runtime.

Change-Id: I0e2d9f81e2ab87c2376a04fab38a7c951cac7a07
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/6060
Tested-by: build bot (Jenkins)
src/arch/x86/boot/acpi.c
src/arch/x86/boot/tables.c
src/arch/x86/include/arch/acpi.h
src/include/cbmem.h