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:
parent
d1c1c9a76e
commit
09e2f6e1ba
|
@ -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.
|
||||
|
|
|
@ -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("\\");
|
||||
|
|
Loading…
Reference in New Issue