x86/microcode: Decrease CPUID use
authorBorislav Petkov <bp@suse.de>
Fri, 20 Jan 2017 20:29:47 +0000 (21:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 23 Jan 2017 09:02:47 +0000 (10:02 +0100)
commit309aac77768c0c689eac4900ca8a6e9ef470035c
treed30d8d6f8a81ab75b900caa7057f374ca0a504c9
parent8801b3fcb5744dc536272ba4ccfd6faca9b46705
x86/microcode: Decrease CPUID use

Get CPUID(1).EAX value once per CPU and propagate value into the callers
instead of conveniently calling it every time.

Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170120202955.4091-9-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/microcode/amd.c
arch/x86/kernel/cpu/microcode/core.c