diff options
author | 2010-02-24 14:49:47 +0100 | |
---|---|---|
committer | 2010-03-01 19:25:12 +0100 | |
commit | d95cf4de6a1c9c1025ac375bc6d2da6af18fdf35 (patch) | |
tree | 9b50447f79d03aff3a4eedb8f56a3263a8c1ceaa /drivers/edac/amd64_edac.h | |
parent | Linux 2.6.33 (diff) | |
download | linux-d95cf4de6a1c9c1025ac375bc6d2da6af18fdf35.tar.gz linux-d95cf4de6a1c9c1025ac375bc6d2da6af18fdf35.tar.bz2 linux-d95cf4de6a1c9c1025ac375bc6d2da6af18fdf35.zip |
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>
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r-- | drivers/edac/amd64_edac.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index 41bc561e5981..0d4bf5638243 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h @@ -487,7 +487,8 @@ struct amd64_pvt { /* misc settings */ struct flags { unsigned long cf8_extcfg:1; - unsigned long ecc_report:1; + unsigned long nb_mce_enable:1; + unsigned long nb_ecc_prev:1; } flags; }; |