amd64_edac: unify MCGCTL ECC switching
authorBorislav Petkov <borislav.petkov@amd.com>
Tue, 3 Nov 2009 14:29:26 +0000 (15:29 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:05:10 +0000 (15:05 -0800)
commit26eb2ac67f9296d5b66533e55e9a28a2edd05b48
treee37024317d25994c5136754a4246654585287608
parentebd2802865c7ea5f352fd5444c293d013e528922
amd64_edac: unify MCGCTL ECC switching

commit f6d6ae965760906d79ab29bc38507608c5971549 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h