From 89c0ef739599d458a4bbac6c5de39023f2f49b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Tue, 24 Sep 2019 08:56:36 +0300 Subject: cpu/intel/: Clean up microcode update from __PRE_RAM__ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib12985dd9a12495533a82be556405f975a0abe27 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/35587 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/cpu/intel/microcode/microcode.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/cpu/intel/microcode') diff --git a/src/cpu/intel/microcode/microcode.c b/src/cpu/intel/microcode/microcode.c index ed660a774b..feb73c8b42 100644 --- a/src/cpu/intel/microcode/microcode.c +++ b/src/cpu/intel/microcode/microcode.c @@ -24,11 +24,9 @@ #include #include #include - -#if !defined(__PRE_RAM__) #include + DECLARE_SPIN_LOCK(microcode_lock) -#endif struct microcode { u32 hdrver; /* Header Version */ @@ -225,15 +223,11 @@ void intel_update_microcode_from_cbfs(void) { const void *patch = intel_microcode_find(); -#if !defined(__ROMCC__) && !defined(__PRE_RAM__) spin_lock(µcode_lock); -#endif intel_microcode_load_unlocked(patch); -#if !defined(__ROMCC__) && !defined(__PRE_RAM__) spin_unlock(µcode_lock); -#endif } #if ENV_RAMSTAGE -- cgit v1.2.3