EDAC: Add memory controller flags
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 13 Sep 2012 15:19:40 +0000 (17:19 +0200)
committerBorislav Petkov <bp@alien8.de>
Wed, 28 Nov 2012 10:48:04 +0000 (11:48 +0100)
The first flag is ->csbased and will be used in common EDAC code later.

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

index cb64bec..307ff66 100644 (file)
@@ -2518,6 +2518,7 @@ static int amd64_init_one_instance(struct pci_dev *F2)
 
        mci->pvt_info = pvt;
        mci->pdev = &pvt->F2->dev;
+       mci->csbased = 1;
 
        setup_mci_misc_attrs(mci, fam_type);
 
index bab9f84..07bda01 100644 (file)
@@ -667,6 +667,8 @@ struct mem_ctl_info {
        u32 fake_inject_ue;
        u16 fake_inject_count;
 #endif
+       __u8 csbased : 1,       /* csrow-based memory controller */
+            __resv  : 7;
 };
 
 #endif