x86/microcode/intel: Fish out the stashed microcode for the BSP
authorBorislav Petkov <bp@suse.de>
Mon, 8 Dec 2014 11:08:20 +0000 (12:08 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 10 Dec 2014 10:36:28 +0000 (11:36 +0100)
commit25cdb9c86826f8d035d8aaa07fc36832e76bd8a0
tree109488e7dd8dda93e045655f20ee33b30b278472
parente913b8cd4548cd0a407b7debd6ec9104e84d050d
x86/microcode/intel: Fish out the stashed microcode for the BSP

I'm such a moron! The simple solution of saving the BSP patch
for use on resume was too simple (and wrong!), hint:
sizeof(struct microcode_intel).

What needs to be done instead is to fish out the microcode patch
we have stashed previously and apply that on the BSP in case the
late loader hasn't been utilized.

So do that instead.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20141208110820.GB20057@pd.tnic
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/microcode/intel_early.c