amd64_edac: Sanitize f10_get_base_addr_offset
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 10 Dec 2010 18:49:19 +0000 (19:49 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Thu, 17 Mar 2011 13:46:13 +0000 (14:46 +0100)
commitc8e518d5673d6b694ab843ee586438cdff0b3809
tree1d21328c162aa25bf7083ccbfbae085159b2f337
parent229a7a11ac1afa84db2eac91b3fc38a0f5464696
amd64_edac: Sanitize f10_get_base_addr_offset

This function maps the system address to the normalized DCT address.
Document what the code does for more clarity and wrap insane bitmasks in
a more understandable macro which generates them. Also, reduce number of
arguments passed to the function. Finally, rename this function to what
it actually does.

No functional change.

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