aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/microcode/intel_early.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu/microcode/intel_early.c')
-rw-r--r--arch/x86/kernel/cpu/microcode/intel_early.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/microcode/intel_early.c b/arch/x86/kernel/cpu/microcode/intel_early.c
index 18f739129e72..b88343f7a3b3 100644
--- a/arch/x86/kernel/cpu/microcode/intel_early.c
+++ b/arch/x86/kernel/cpu/microcode/intel_early.c
@@ -28,8 +28,8 @@
28#include <asm/tlbflush.h> 28#include <asm/tlbflush.h>
29#include <asm/setup.h> 29#include <asm/setup.h>
30 30
31unsigned long mc_saved_in_initrd[MAX_UCODE_COUNT]; 31static unsigned long mc_saved_in_initrd[MAX_UCODE_COUNT];
32struct mc_saved_data { 32static struct mc_saved_data {
33 unsigned int mc_saved_count; 33 unsigned int mc_saved_count;
34 struct microcode_intel **mc_saved; 34 struct microcode_intel **mc_saved;
35} mc_saved_data; 35} mc_saved_data;
@@ -415,7 +415,7 @@ static void __ref show_saved_mc(void)
415 struct ucode_cpu_info uci; 415 struct ucode_cpu_info uci;
416 416
417 if (mc_saved_data.mc_saved_count == 0) { 417 if (mc_saved_data.mc_saved_count == 0) {
418 pr_debug("no micorcode data saved.\n"); 418 pr_debug("no microcode data saved.\n");
419 return; 419 return;
420 } 420 }
421 pr_debug("Total microcode saved: %d\n", mc_saved_data.mc_saved_count); 421 pr_debug("Total microcode saved: %d\n", mc_saved_data.mc_saved_count);
@@ -506,7 +506,7 @@ int save_mc_for_early(u8 *mc)
506 506
507 if (mc_saved && mc_saved_count) 507 if (mc_saved && mc_saved_count)
508 memcpy(mc_saved_tmp, mc_saved, 508 memcpy(mc_saved_tmp, mc_saved,
509 mc_saved_count * sizeof(struct mirocode_intel *)); 509 mc_saved_count * sizeof(struct microcode_intel *));
510 /* 510 /*
511 * Save the microcode patch mc in mc_save_tmp structure if it's a newer 511 * Save the microcode patch mc in mc_save_tmp structure if it's a newer
512 * version. 512 * version.
@@ -526,7 +526,7 @@ int save_mc_for_early(u8 *mc)
526 show_saved_mc(); 526 show_saved_mc();
527 527
528 /* 528 /*
529 * Free old saved microcod data. 529 * Free old saved microcode data.
530 */ 530 */
531 if (mc_saved) { 531 if (mc_saved) {
532 for (i = 0; i < mc_saved_count_init; i++) 532 for (i = 0; i < mc_saved_count_init; i++)