amd64_edac: Reorganize error reporting path
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 30 Aug 2012 16:01:36 +0000 (18:01 +0200)
committerBorislav Petkov <bp@alien8.de>
Wed, 28 Nov 2012 10:45:34 +0000 (11:45 +0100)
commit33ca0643c9a0ea50d0dc9bf0e9e9044502c7038c
tree70a65c1bcc5ea463c3afd38a02d3eccfff9e53ec
parentc8d1adf092d8aa1ed947da789a99eee1130aa304
amd64_edac: Reorganize error reporting path

Rewrite CE/UE paths so that they use the same code and drop additional
code duplication in handle_ue. Add a struct err_info which collects
required info for the error reporting. This, in turn, helps slimming all
edac_mc_handle_error() calls down to one.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h