diff --git a/src/soc/intel/xeon_sp/skx/cpu.c b/src/soc/intel/xeon_sp/skx/cpu.c index 009527c84e..113c6301c3 100644 --- a/src/soc/intel/xeon_sp/skx/cpu.c +++ b/src/soc/intel/xeon_sp/skx/cpu.c @@ -1,22 +1,25 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ +#include #include #include -#include #include #include #include #include #include +#include +#include +#include +#include #include +#include #include #include #include -#include -#include "chip.h" -#include -#include #include +#include "chip.h" + static const config_t *chip_config = NULL; @@ -211,8 +214,11 @@ static void post_mp_init(void) /* Set Max Ratio */ set_max_turbo_freq(); - if (CONFIG(HAVE_SMI_HANDLER)) + if (CONFIG(HAVE_SMI_HANDLER)) { global_smi_enable(); + if (get_lockdown_config() == CHIPSET_LOCKDOWN_COREBOOT) + pmc_lock_smi(); + } } /*