summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/apollolake/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/apollolake/cpu.c')
-rw-r--r--src/soc/intel/apollolake/cpu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/intel/apollolake/cpu.c b/src/soc/intel/apollolake/cpu.c
index a071337f9f1e..f2b14d73f647 100644
--- a/src/soc/intel/apollolake/cpu.c
+++ b/src/soc/intel/apollolake/cpu.c
@@ -48,6 +48,10 @@ static const struct reg_script core_msr_script[] = {
void soc_core_init(struct device *cpu)
{
+ /* Configure Core PRMRR for SGX. */
+ if (CONFIG(SOC_INTEL_COMMON_BLOCK_SGX_ENABLE))
+ prmrr_core_configure();
+
/* Clear out pending MCEs */
/* TODO(adurbin): Some of these banks are core vs package
scope. For now every CPU clears every bank. */
@@ -66,10 +70,6 @@ void soc_core_init(struct device *cpu)
*/
enable_pm_timer_emulation();
- /* Configure Core PRMRR for SGX. */
- if (CONFIG(SOC_INTEL_COMMON_BLOCK_SGX_ENABLE))
- prmrr_core_configure();
-
/* Set Max Non-Turbo ratio if RAPL is disabled. */
if (CONFIG(APL_SKIP_SET_POWER_LIMITS)) {
cpu_set_p_state_to_max_non_turbo_ratio();