intel/fsp_rangeley: Avoid preprocessor with HAVE_SMI_HANDLER

Change-Id: Id9abc239a92fa7d3e29738f08f2ccdaf3232dfb6
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34253
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Kyösti Mälkki 2019-07-12 08:02:35 +03:00
parent d1c1c9a76e
commit 09e2f6e1ba
2 changed files with 3 additions and 6 deletions

View File

@ -23,9 +23,6 @@
#include <device/pci_ops.h>
#include <version.h>
#if CONFIG(HAVE_SMI_HANDLER)
#include <cpu/x86/smm.h>
#endif
/**
* Fill in the FADT with generic values that can be overridden later.

View File

@ -421,10 +421,10 @@ static void southbridge_inject_dsdt(struct device *dev)
if (gnvs) {
memset(gnvs, 0, sizeof(*gnvs));
acpi_create_gnvs(gnvs);
#if CONFIG(HAVE_SMI_HANDLER)
/* And tell SMI about it */
smm_setup_structures(gnvs, NULL, NULL);
#endif
if (CONFIG(HAVE_SMI_HANDLER))
smm_setup_structures(gnvs, NULL, NULL);
/* Add it to DSDT. */
acpigen_write_scope("\\");