x86, ucode-amd: Ensure ucode update on suspend/resume after CPU off/online cycle
[cascardo/linux.git] / arch / x86 / kernel / microcode_core.c
index d2a8160..adf2340 100644 (file)
@@ -393,7 +393,7 @@ static enum ucode_state microcode_update_cpu(int cpu)
        struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
        enum ucode_state ustate;
 
-       if (uci->valid)
+       if (uci->valid && uci->mc)
                ustate = microcode_resume_cpu(cpu);
        else
                ustate = microcode_init_cpu(cpu);