EDAC: move MCE error descriptions to EDAC core
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 25 Jun 2009 17:32:38 +0000 (19:32 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Mon, 14 Sep 2009 16:57:48 +0000 (18:57 +0200)
commitb70ef01016850de87b9a28a6af19fed8801df076
tree78159c6e177c5557f2cc9342f8bc0833645d8da5
parent74fca6a42863ffacaf7ba6f1936a9f228950f657
EDAC: move MCE error descriptions to EDAC core

This is in preparation of adding AMD-specific MCE decoding functionality
to the EDAC core. The error decoding macros originate from the AMD64
EDAC driver albeit in a simplified and cleaned up version here.

While at it, add macros to generate the error description strings and
use them in the error type decoders directly which removes a bunch of
code and makes the decoding functions much more readable. Also, fix
strings and shorten macro names.

Remove superfluous htlink_msgs.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/Makefile
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h
drivers/edac/edac_mce_amd.c [moved from drivers/edac/amd64_edac_err_types.c with 61% similarity]
drivers/edac/edac_mce_amd.h [new file with mode: 0644]