x86/microcode/intel: Add a helper which gives the microcode revision
authorBorislav Petkov <bp@suse.de>
Mon, 9 Jan 2017 11:41:45 +0000 (12:41 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 9 Jan 2017 22:11:14 +0000 (23:11 +0100)
commit4167709bbf826512a52ebd6aafda2be104adaec9
tree29ddbe49a559437f134819900d7b77728f5c0d5b
parentf3e2a51f568d9f33370f4e8bb05669a34223241a
x86/microcode/intel: Add a helper which gives the microcode revision

Since on Intel we're required to do CPUID(1) first, before reading
the microcode revision MSR, let's add a special helper which does the
required steps so that we don't forget to do them next time, when we
want to read the microcode revision.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/20170109114147.5082-4-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/microcode_intel.h
arch/x86/kernel/cpu/intel.c
arch/x86/kernel/cpu/microcode/intel.c