ACPI S3: Remove conflicting local acpi_get_sleep_type()
commit746241f114e851623d2031959a99b06a5102708b
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Mon, 4 Sep 2017 16:22:26 +0000 (4 19:22 +0300)
committerKyösti Mälkki <kyosti.malkki@gmail.com>
Wed, 6 Sep 2017 04:11:46 +0000 (6 04:11 +0000)
treecb80193b75e7b335978d51b71734e5f7c2b004e5
parentb92ad0b0775b939240980bb4a1c60521efb7d008
ACPI S3: Remove conflicting local acpi_get_sleep_type()

We now require EARLY_CBMEM_INIT and romstage_handoff to
support HAVE_ACPI_RESUME. Thus acpi_handoff_wakeup() would
never call an externally defined acpi_get_sleep_type().

Name _sleep_type() was also inapproriate here, as it referred
to hardware-dependent SLP_TYP field of PM1CNT but still
returned ACPI_Sx value instead.

Change-Id: I8dc130f1e86dd7e96922d546f0ae9713188336cd
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/21397
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Subrata Banik <subrata.banik@intel.com>
src/arch/x86/acpi_s3.c
src/southbridge/amd/agesa/hudson/ramtop.c
src/southbridge/amd/cimx/sb800/ramtop.c