diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2012-09-13 11:19:40 -0400 |
---|---|---|
committer | Borislav Petkov <bp@alien8.de> | 2012-11-28 05:48:04 -0500 |
commit | 11652769179296062c74233e168399a87a3f6e8a (patch) | |
tree | 78a844e4e08bd18180bdcfe085da17fba38fda83 | |
parent | 10de6497a56e933d9ddca94aff186ac3b3105af9 (diff) |
EDAC: Add memory controller flags
The first flag is ->csbased and will be used in common EDAC code later.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
-rw-r--r-- | drivers/edac/amd64_edac.c | 1 | ||||
-rw-r--r-- | include/linux/edac.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index cb64bec374d9..307ff66266a0 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -2518,6 +2518,7 @@ static int amd64_init_one_instance(struct pci_dev *F2) | |||
2518 | 2518 | ||
2519 | mci->pvt_info = pvt; | 2519 | mci->pvt_info = pvt; |
2520 | mci->pdev = &pvt->F2->dev; | 2520 | mci->pdev = &pvt->F2->dev; |
2521 | mci->csbased = 1; | ||
2521 | 2522 | ||
2522 | setup_mci_misc_attrs(mci, fam_type); | 2523 | setup_mci_misc_attrs(mci, fam_type); |
2523 | 2524 | ||
diff --git a/include/linux/edac.h b/include/linux/edac.h index bab9f8473dc1..07bda01bf20a 100644 --- a/include/linux/edac.h +++ b/include/linux/edac.h | |||
@@ -667,6 +667,8 @@ struct mem_ctl_info { | |||
667 | u32 fake_inject_ue; | 667 | u32 fake_inject_ue; |
668 | u16 fake_inject_count; | 668 | u16 fake_inject_count; |
669 | #endif | 669 | #endif |
670 | __u8 csbased : 1, /* csrow-based memory controller */ | ||
671 | __resv : 7; | ||
670 | }; | 672 | }; |
671 | 673 | ||
672 | #endif | 674 | #endif |