summaryrefslogtreecommitdiffstats
path: root/src/include/cpu
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-11-19 11:38:35 -0700
committerRaul Rangel <rrangel@chromium.org>2021-11-29 20:39:32 +0000
commit4b5a490b6f3faffe1880c731b50d1a4adabfb622 (patch)
tree09be3f175073c57db3fb02d174e6d20950979e21 /src/include/cpu
parent6b446b991b00c44902b70d86c75b23a8f93d510b (diff)
downloadcoreboot-4b5a490b6f3faffe1880c731b50d1a4adabfb622.tar.gz
coreboot-4b5a490b6f3faffe1880c731b50d1a4adabfb622.tar.bz2
coreboot-4b5a490b6f3faffe1880c731b50d1a4adabfb622.zip
src/cpu,soc/amd/common/block/cpu: Add preload_microcode
This will enable preloading the microcode. By preloading the file, into cbfs_cache we reduce boot time. BUG=b:179699789 TEST=Boot guybrush with CL chain and see microcode preloading and a reduction of 1 ms. | 112 - started reading uCode | 1.041 | 1.204 Δ( 0.16, 0.01%) | | 113 - finished reading uCode | 1.365 | 0.011 Δ( -1.35, -0.10%) | Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: If0c634c692c97769e71acd1175fc464dc592c356 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58963 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/include/cpu')
-rw-r--r--src/include/cpu/amd/microcode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/cpu/amd/microcode.h b/src/include/cpu/amd/microcode.h
index 800661b79776..74075944bb5d 100644
--- a/src/include/cpu/amd/microcode.h
+++ b/src/include/cpu/amd/microcode.h
@@ -2,5 +2,6 @@
#define CPU_AMD_MICROCODE_H
void amd_update_microcode_from_cbfs(void);
+void preload_microcode(void);
#endif /* CPU_AMD_MICROCODE_H */