summaryrefslogtreecommitdiffstats
path: root/drivers/edac/amd64_edac.h
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-02-24 14:49:47 +0100
committerBorislav Petkov <borislav.petkov@amd.com>2010-03-01 19:25:12 +0100
commitd95cf4de6a1c9c1025ac375bc6d2da6af18fdf35 (patch)
tree9b50447f79d03aff3a4eedb8f56a3263a8c1ceaa /drivers/edac/amd64_edac.h
parent60b341b778cc2929df16c0a504c91621b3c6a4ad (diff)
downloadop-kernel-dev-d95cf4de6a1c9c1025ac375bc6d2da6af18fdf35.zip
op-kernel-dev-d95cf4de6a1c9c1025ac375bc6d2da6af18fdf35.tar.gz
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h
index 41bc561..0d4bf56 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;
};
OpenPOWER on IntegriCloud