File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
arch/x86/kernel/cpu/microcode Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -796,6 +796,7 @@ static enum ucode_state apply_microcode_intel(int cpu)
796
796
{
797
797
struct ucode_cpu_info * uci = ucode_cpu_info + cpu ;
798
798
struct cpuinfo_x86 * c = & cpu_data (cpu );
799
+ bool bsp = c -> cpu_index == boot_cpu_data .cpu_index ;
799
800
struct microcode_intel * mc ;
800
801
enum ucode_state ret ;
801
802
static int prev_rev ;
@@ -841,7 +842,7 @@ static enum ucode_state apply_microcode_intel(int cpu)
841
842
return UCODE_ERROR ;
842
843
}
843
844
844
- if (rev != prev_rev ) {
845
+ if (bsp && rev != prev_rev ) {
845
846
pr_info ("updated to revision 0x%x, date = %04x-%02x-%02x\n" ,
846
847
rev ,
847
848
mc -> hdr .date & 0xffff ,
@@ -857,7 +858,7 @@ static enum ucode_state apply_microcode_intel(int cpu)
857
858
c -> microcode = rev ;
858
859
859
860
/* Update boot_cpu_data's revision too, if we're on the BSP: */
860
- if (c -> cpu_index == boot_cpu_data . cpu_index )
861
+ if (bsp )
861
862
boot_cpu_data .microcode = rev ;
862
863
863
864
/* Whitelist/blacklist speculation control features. */
You can’t perform that action at this time.
0 commit comments