浏览代码

i7core_edac: Initialize memory name with cpu, channel, bank

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab 14 年之前
父节点
当前提交
767ba4a52a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      drivers/edac/i7core_edac.c

+ 4 - 0
drivers/edac/i7core_edac.c

@@ -746,6 +746,10 @@ static int get_dimm_config(const struct mem_ctl_info *mci)
 
 			csr->edac_mode = mode;
 			csr->mtype = mtype;
+			snprintf(csr->channels[0].label,
+					sizeof(csr->channels[0].label),
+					"CPU#%uChannel#%u_DIMM#%u",
+					pvt->i7core_dev->socket, i, j);
 
 			csrow++;
 		}