x86/microcode/AMD: Simplify patch family detection
authorBorislav Petkov <bp@suse.de>
Thu, 19 Jul 2018 13:47:07 +0000 (15:47 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 19 Nov 2018 09:51:05 +0000 (10:51 +0100)
commit6cdce951f7a1d8161910d5cd9bd9e6197bf5cc97
treeaef7f36c00f3e0563fc42c00408fa373bd44d7ab
parent2b8d34b1ece506a9bbd47b56d266ee020a0c65ac
x86/microcode/AMD: Simplify patch family detection

Instead of traversing the equivalence table, compute the family a patch
is for, from the processor revision ID in the microcode header.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: x86@kernel.org
Link: https://lkml.kernel.org/r/20181107170218.7596-8-bp@alien8.de
arch/x86/kernel/cpu/microcode/amd.c