x86/microcode/AMD: Check patch level only on the BSP
authorBorislav Petkov <bp@suse.de>
Fri, 20 Jan 2017 20:29:51 +0000 (21:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 23 Jan 2017 09:02:50 +0000 (10:02 +0100)
commitf3ad136d6ef966c8ba9090770c2bfe7e85f18471
tree0dc1ad8daeeff482ea918ecce926859a4432b182
parent7a93a40be23e5557934d773cc89b7b3627c08097
x86/microcode/AMD: Check patch level only on the BSP

Check final patch levels for AMD only on the BSP. This way, we decide
early and only once whether to continue loading or to leave the loader
disabled on such systems.

Simplify a lot.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/20170120202955.4091-13-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/microcode_amd.h
arch/x86/kernel/cpu/microcode/amd.c
arch/x86/kernel/cpu/microcode/core.c