]> git.hungrycats.org Git - linux/commit
x86, microcode: Reload microcode on resume
authorBorislav Petkov <bp@suse.de>
Wed, 3 Dec 2014 16:21:41 +0000 (17:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2015 18:30:22 +0000 (10:30 -0800)
commitd239198442d300710a2389449a583edbcfb68581
tree73d6d7e077ec11ea74331948d164975e897bbbd1
parent44c4db3ab0378564d40f9b6aafd12908cdcb97ca
x86, microcode: Reload microcode on resume

commit fbae4ba8c4a387e306adc9c710e5c225cece7678 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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