x86/microcode: Consolidate family,model, ... code
commit58ce8d6d3a7616014dc70fd8d8f945176d74957c
authorBorislav Petkov <bp@suse.de>
Mon, 9 Feb 2015 20:42:34 +0000 (9 21:42 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 2 Mar 2015 19:32:07 +0000 (2 20:32 +0100)
tree0f627b72ce176a890460c7a28a2d57d4423b0697
parent4f5e5f2b574804ed330e20456d5b86a4259544ad
x86/microcode: Consolidate family,model, ... code

... to the header. Split the family acquiring function into a
main one, doing CPUID and a helper which computes the extended
family and is used in multiple places. Get rid of the locally-grown
get_x86_{family,model}().

While at it, rename local variables to something more descriptive and
vertically align assignments for better readability.

There should be no functionality change resulting from this patch.

Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/include/asm/microcode.h
arch/x86/kernel/cpu/microcode/core_early.c
arch/x86/kernel/cpu/microcode/intel_early.c