aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-03-11 08:28:48 -0400
committerBorislav Petkov <bp@suse.de>2013-03-16 01:32:30 -0400
commit9713faecff3d071de1208b081d4943b002e9cb1c (patch)
treeb6ab68f15527eae952a407aa604607aca719a5ba /include
parent1eef1282549d7accdd33ee36d409b039b1f911fb (diff)
EDAC: Merge mci.mem_is_per_rank with mci.csbased
Both mci.mem_is_per_rank and mci.csbased denote the same thing: the memory controller is csrows based. Merge both fields into one. There's no need for the driver to actually fill it, as the core detects it by checking if one of the layers has the csrows type as part of the memory hierarchy: if (layers[i].type == EDAC_MC_LAYER_CHIP_SELECT) per_rank = true; Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/edac.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/edac.h b/include/linux/edac.h
index ab1ea98e767c..0b763276f619 100644
--- a/include/linux/edac.h
+++ b/include/linux/edac.h
@@ -675,11 +675,11 @@ struct mem_ctl_info {
675 * sees memory sticks ("dimms"), and the ones that sees memory ranks. 675 * sees memory sticks ("dimms"), and the ones that sees memory ranks.
676 * All old memory controllers enumerate memories per rank, but most 676 * All old memory controllers enumerate memories per rank, but most
677 * of the recent drivers enumerate memories per DIMM, instead. 677 * of the recent drivers enumerate memories per DIMM, instead.
678 * When the memory controller is per rank, mem_is_per_rank is true. 678 * When the memory controller is per rank, csbased is true.
679 */ 679 */
680 unsigned n_layers; 680 unsigned n_layers;
681 struct edac_mc_layer *layers; 681 struct edac_mc_layer *layers;
682 bool mem_is_per_rank; 682 bool csbased;
683 683
684 /* 684 /*
685 * DIMM info. Will eventually remove the entire csrows_info some day 685 * DIMM info. Will eventually remove the entire csrows_info some day
@@ -740,8 +740,6 @@ struct mem_ctl_info {
740 u32 fake_inject_ue; 740 u32 fake_inject_ue;
741 u16 fake_inject_count; 741 u16 fake_inject_count;
742#endif 742#endif
743 __u8 csbased : 1, /* csrow-based memory controller */
744 __resv : 7;
745}; 743};
746 744
747#endif 745#endif