File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
arch/x86/kernel/cpu/microcode Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -791,21 +791,20 @@ static int collect_cpu_info(int cpu_num, struct cpu_signature *csig)
791
791
792
792
static enum ucode_state apply_microcode_intel (int cpu )
793
793
{
794
- struct microcode_intel * mc ;
795
- struct ucode_cpu_info * uci ;
794
+ struct ucode_cpu_info * uci = ucode_cpu_info + cpu ;
796
795
struct cpuinfo_x86 * c = & cpu_data (cpu );
796
+ struct microcode_intel * mc ;
797
797
static int prev_rev ;
798
798
u32 rev ;
799
799
800
800
/* We should bind the task to the CPU */
801
801
if (WARN_ON (raw_smp_processor_id () != cpu ))
802
802
return UCODE_ERROR ;
803
803
804
- uci = ucode_cpu_info + cpu ;
805
- mc = uci -> mc ;
804
+ /* Look for a newer patch in our cache: */
805
+ mc = find_patch ( uci ) ;
806
806
if (!mc ) {
807
- /* Look for a newer patch in our cache: */
808
- mc = find_patch (uci );
807
+ mc = uci -> mc ;
809
808
if (!mc )
810
809
return UCODE_NFOUND ;
811
810
}
You can’t perform that action at this time.
0 commit comments