OSDN Git Service

x86/microcode: Update the new microcode revision unconditionally
authorFilippo Sironi <sironi@amazon.de>
Tue, 31 Jul 2018 15:29:30 +0000 (17:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 2 Sep 2018 12:10:54 +0000 (14:10 +0200)
commit8da38ebaad23fe1b0c4a205438676f6356607cfc
tree42a41050c5ea5b6a0f3e476b669010f62299c533
parent370a132bb2227ff76278f98370e0e701d86ff752
x86/microcode: Update the new microcode revision unconditionally

Handle the case where microcode gets loaded on the BSP's hyperthread
sibling first and the boot_cpu_data's microcode revision doesn't get
updated because of early exit due to the siblings sharing a microcode
engine.

For that, simply write the updated revision on all CPUs unconditionally.

Signed-off-by: Filippo Sironi <sironi@amazon.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: prarit@redhat.com
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1533050970-14385-1-git-send-email-sironi@amazon.de
arch/x86/kernel/cpu/microcode/amd.c
arch/x86/kernel/cpu/microcode/intel.c