]> git.baikalelectronics.ru Git - kernel.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)
commitb402881591d1e8a03fbeb7805b4a3807428979e7
tree661e543af2cab13c77b21519d49534e51e319fbd
parent102f84ff670a1ffc98b401b60d3c904b48768fcd
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