Star64_linux/arch/x86/kernel/cpu/microcode
Ashok Raj c182d2b7d0 x86/microcode/intel: Check microcode revision before updating sibling threads
After updating microcode on one of the threads of a core, the other
thread sibling automatically gets the update since the microcode
resources on a hyperthreaded core are shared between the two threads.

Check the microcode revision on the CPU before performing a microcode
update and thus save us the WRMSR 0x79 because it is a particularly
expensive operation.

[ Borislav: Massage changelog and coding style. ]

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Tested-by: Ashok Raj <ashok.raj@intel.com>
Cc: Arjan Van De Ven <arjan.van.de.ven@intel.com>
Link: http://lkml.kernel.org/r/1519352533-15992-2-git-send-email-ashok.raj@intel.com
Link: https://lkml.kernel.org/r/20180228102846.13447-3-bp@alien8.de
2018-03-08 10:19:25 +01:00
..
amd.c x86/microcode: Propagate return value from updating functions 2018-02-17 08:43:55 +01:00
core.c x86/microcode: Get rid of struct apply_microcode_ctx 2018-03-08 10:19:25 +01:00
intel.c x86/microcode/intel: Check microcode revision before updating sibling threads 2018-03-08 10:19:25 +01:00
Makefile x86/microcode/intel: Remove intel_lib.c 2016-10-25 12:28:59 +02:00