]> git.karo-electronics.de Git - linux-beck.git/commit
x86, microcode: Reload microcode on resume
authorBorislav Petkov <bp@suse.de>
Wed, 3 Dec 2014 16:21:41 +0000 (17:21 +0100)
committerBorislav Petkov <bp@suse.de>
Sat, 6 Dec 2014 12:03:03 +0000 (13:03 +0100)
commitfbae4ba8c4a387e306adc9c710e5c225cece7678
tree661e543af2cab13c77b21519d49534e51e319fbd
parenta18a0f6850d4b286a5ebf02cd5b22fe496b86349
x86, microcode: Reload microcode on resume

Normally, we do reapply microcode on resume. However, in the cases where
that microcode comes from the early loader and the late loader hasn't
been utilized yet, there's no easy way for us to go and apply the patch
applied during boot by the early loader.

Thus, reuse the patch stashed by the early loader for the BSP.

Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/include/asm/microcode.h
arch/x86/include/asm/microcode_amd.h
arch/x86/include/asm/microcode_intel.h
arch/x86/kernel/cpu/microcode/amd_early.c
arch/x86/kernel/cpu/microcode/core.c
arch/x86/kernel/cpu/microcode/core_early.c
arch/x86/kernel/cpu/microcode/intel_early.c