From ad882c3b171ccd71d84ddc971ab0c4ae563190de Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Tue, 2 Jun 2020 05:05:30 +0300 Subject: sb/intel: Remove spurious HAVE_SMI_HANDLER test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are no side-effects in calling acpi_is_wakeup_s3() and apm_control() is a no-op with HAVE_SMI_HANDLER=n. Change-Id: Ia9195781955cc5fa96d0690aa7735fc590e527e4 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/41986 Reviewed-by: Angel Pons Reviewed-by: Paul Menzel Reviewed-by: Patrick Rudolph Tested-by: build bot (Jenkins) --- src/southbridge/intel/ibexpeak/lpc.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/southbridge/intel/ibexpeak') diff --git a/src/southbridge/intel/ibexpeak/lpc.c b/src/southbridge/intel/ibexpeak/lpc.c index 2362649ae6..4f86e9b80b 100644 --- a/src/southbridge/intel/ibexpeak/lpc.c +++ b/src/southbridge/intel/ibexpeak/lpc.c @@ -408,8 +408,8 @@ static void enable_clock_gating(struct device *dev) static void pch_set_acpi_mode(void) { - if (!acpi_is_wakeup_s3() && CONFIG(HAVE_SMI_HANDLER)) { - apm_control(APM_CNT_ACPI_DISABLE); // Disable ACPI mode + if (!acpi_is_wakeup_s3()) { + apm_control(APM_CNT_ACPI_DISABLE); } } @@ -722,11 +722,9 @@ static void lpc_final(struct device *dev) spi_finalize_ops(); /* Call SMM finalize() handlers before resume */ - if (CONFIG(HAVE_SMI_HANDLER)) { - if (CONFIG(INTEL_CHIPSET_LOCKDOWN) || - acpi_is_wakeup_s3()) { - apm_control(APM_CNT_FINALIZE); - } + if (CONFIG(INTEL_CHIPSET_LOCKDOWN) || + acpi_is_wakeup_s3()) { + apm_control(APM_CNT_FINALIZE); } } -- cgit v1.2.3