soc/intel/block/pmclib.c: Properly guard apm_control()

This function is only properly implemented with SMM support.

Change-Id: I9e0fc7433a9226825f5ae4903c0ff2e0162d86ac
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47757
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Arthur Heymans 2020-11-19 14:22:24 +01:00 committed by Patrick Georgi
parent f2baae3735
commit 8461cec76c

View File

@ -713,7 +713,7 @@ void pmc_disable_acpi_timer(void)
void pmc_set_acpi_mode(void) void pmc_set_acpi_mode(void)
{ {
if (!acpi_is_wakeup_s3()) { if (!CONFIG(NO_SMM) && !acpi_is_wakeup_s3()) {
apm_control(APM_CNT_ACPI_DISABLE); apm_control(APM_CNT_ACPI_DISABLE);
} }
} }