amd64_edac: Sanitize channel extraction
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 9 Dec 2010 17:57:54 +0000 (18:57 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Thu, 17 Mar 2011 13:46:13 +0000 (14:46 +0100)
commit229a7a11ac1afa84db2eac91b3fc38a0f5464696
tree515508afed96c844be173c973ec3158a4363f544
parent11c75eadaf75fe6320325aa13dc135f26ad724b8
amd64_edac: Sanitize channel extraction

Cleanup and simplify f10_determine_channel(); make it more readable.
Also drop f10_map_intlv_en_to_shift() in favor of simply counting the
bits in F1x124[DramIntlvEn] which is equivalent.

There should be no functionality change resulting from this patch.

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