x86, microcode, AMD: Add reverse equiv table search
authorBorislav Petkov <borislav.petkov@amd.com>
Wed, 1 Aug 2012 12:55:01 +0000 (14:55 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 22 Aug 2012 23:16:11 +0000 (16:16 -0700)
commitc96d2c0905cc48e34f2b37b775b59932c416b343
tree56995e17f725ba5ad5d01c963657e4fbb36b24a3
parent48e30685caa8bdc4b8d4417d8ac31db59689742c
x86, microcode, AMD: Add reverse equiv table search

We search the equivalence table using the CPUID(1) signature of the
CPU in order to get the equivalence ID of the patch which we need to
apply. Add a function which does the reverse - it will be needed in
later patches.

While at it, pull the other equiv table function up in the file so that
it can be used by other functionality without forward declarations.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Link: http://lkml.kernel.org/r/1344361461-10076-11-git-send-email-bp@amd64.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/microcode_amd.c