]> bbs.cooldavid.org Git - net-next-2.6.git/commit
amd64_edac: Simplify ECC override handling
authorBorislav Petkov <borislav.petkov@amd.com>
Wed, 24 Feb 2010 13:49:47 +0000 (14:49 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Mon, 1 Mar 2010 18:25:12 +0000 (19:25 +0100)
commitd95cf4de6a1c9c1025ac375bc6d2da6af18fdf35
tree9b50447f79d03aff3a4eedb8f56a3263a8c1ceaa
parent60b341b778cc2929df16c0a504c91621b3c6a4ad
amd64_edac: Simplify ECC override handling

No need for clearing ecc_enable_override and checking it in two places.
Instead, simply check it during probing and act accordingly. Also,
rename the flag bitfields according to the functionality they actually
represent. What is more, make sure original BIOS ECC settings are
restored when the module is unloaded.

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