summaryrefslogtreecommitdiffstats
path: root/src/include/cpu/intel
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2021-01-25 09:29:38 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-01-28 09:23:45 +0000
commit0bea950a479cc5b3b3bc8f362fc356ad43f9f892 (patch)
tree2d3e55b289a0b2d43f284f95cbd59b5111e3bb67 /src/include/cpu/intel
parent27c9fcfc4857907132030b840ad7f21ca8269193 (diff)
downloadcoreboot-0bea950a479cc5b3b3bc8f362fc356ad43f9f892.tar.gz
coreboot-0bea950a479cc5b3b3bc8f362fc356ad43f9f892.tar.bz2
coreboot-0bea950a479cc5b3b3bc8f362fc356ad43f9f892.zip
cpu/intel/microcode: Add caching layer in intel_microcode_find
Cache the found microcode for faster subsequent accesses. Change-Id: Ic40d57964600f8f20ddb26c7d1691b043fd89f29 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49896 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/cpu/intel')
-rw-r--r--src/include/cpu/intel/microcode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/cpu/intel/microcode.h b/src/include/cpu/intel/microcode.h
index f1a86012583f..7fd6eac2863d 100644
--- a/src/include/cpu/intel/microcode.h
+++ b/src/include/cpu/intel/microcode.h
@@ -6,8 +6,10 @@
void intel_update_microcode_from_cbfs(void);
/* Find a microcode that matches the revision and platform family returning
- * NULL if none found. */
+ * NULL if none found. The found microcode is cached for faster access on
+ * subsequent calls of this function. */
const void *intel_microcode_find(void);
+
/* It is up to the caller to determine if parallel loading is possible as
* well as ensuring the microcode matches the family and revision (i.e. with
* intel_microcode_find()). */