amd64_edac: unify MCGCTL ECC switching
commitf6d6ae965760906d79ab29bc38507608c5971549
authorBorislav Petkov <borislav.petkov@amd.com>
Tue, 3 Nov 2009 14:29:26 +0000 (3 15:29 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Mon, 7 Dec 2009 18:14:27 +0000 (7 19:14 +0100)
tree47424f660be015e280760139465be06c0ff47027
parentba578cb34a71fb08fff14ac0796b934a8c9991e1
amd64_edac: unify MCGCTL ECC switching

Unify almost identical code into one function and remove NUMA-specific
usage (specifically cpumask_of_node()) in favor of generic topology
methods.

Remove unused defines, while at it.

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