summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2012-09-13 20:53:58 +0400
committerBorislav Petkov <bp@alien8.de>2012-11-28 14:54:40 +0400
commit16a528ee3975c860dc93fbfc718fe9aa25ed92bc (patch)
treeea0d20d3544df6dfe2977634d1a4cc837f80b964 /include
parent921a689965c26ae6fde12ebaadb4183cbfdb01fb (diff)
downloadlinux-16a528ee3975c860dc93fbfc718fe9aa25ed92bc.tar.xz
EDAC: Fix csrow size reported in sysfs
On csrow-based memory controllers, we combine the csrow size from both channels and there's no need to do that again in csrow_size_show which leads to double the size of a csrow. Fix it. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/edac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/edac.h b/include/linux/edac.h
index 07bda01bf20a..1b8c02b36f76 100644
--- a/include/linux/edac.h
+++ b/include/linux/edac.h
@@ -533,6 +533,7 @@ struct csrow_info {
u32 ue_count; /* Uncorrectable Errors for this csrow */
u32 ce_count; /* Correctable Errors for this csrow */
+ u32 nr_pages; /* combined pages count of all channels */
struct mem_ctl_info *mci; /* the parent */