summaryrefslogtreecommitdiffstats
path: root/drivers/edac/amd64_edac.h
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-12-23 14:07:18 +0100
committerBorislav Petkov <borislav.petkov@amd.com>2011-03-17 14:46:16 +0100
commita97fa68ec403e2761a37b28651de8fd9da8c5e1f (patch)
tree3f9e70f80e4cbe15f603547e2360438a41179cbe /drivers/edac/amd64_edac.h
parentc9f4f26eae096c39547139666e8af607c2447f94 (diff)
downloadop-kernel-dev-a97fa68ec403e2761a37b28651de8fd9da8c5e1f.zip
op-kernel-dev-a97fa68ec403e2761a37b28651de8fd9da8c5e1f.tar.gz
amd64_edac: Cleanup NBCFG handling
The fact whether we are chipkill capable or not does not have any bearing when computing the channel index on a ganged DCT configuration so remove that. Also, simplify debug statements. Finally, remove old error injection leftovers, while at it. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r--drivers/edac/amd64_edac.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h
index fc609d1..6c52736 100644
--- a/drivers/edac/amd64_edac.h
+++ b/drivers/edac/amd64_edac.h
@@ -246,9 +246,9 @@
*/
#define NBCTL 0x40
-#define K8_NBCFG 0x44
-#define K8_NBCFG_CHIPKILL BIT(23)
-#define K8_NBCFG_ECC_ENABLE BIT(22)
+#define NBCFG 0x44
+#define NBCFG_CHIPKILL BIT(23)
+#define NBCFG_ECC_ENABLE BIT(22)
#define K8_NBSL 0x48
@@ -420,9 +420,6 @@ struct amd64_pvt {
/* x4 or x8 syndromes in use */
u8 syn_type;
- /* temp storage for when input is received from sysfs */
- struct err_regs ctl_error_info;
-
/* place to store error injection parameters prior to issue */
struct error_injection injection;
OpenPOWER on IntegriCloud