summaryrefslogtreecommitdiffstats
path: root/drivers/edac/i7core_edac.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2010-08-11 01:26:35 +0200
committerMauro Carvalho Chehab2010-10-24 15:20:36 +0200
commite9144601d364d5b81f3e63949337f8507eb58dca (patch)
tree6be0e0bb2e13e6f0c1bac9c37a6243707e6fa53e /drivers/edac/i7core_edac.c
parenti7core_edac: Properly mark const static vars as such (diff)
downloadkernel-qcow2-linux-e9144601d364d5b81f3e63949337f8507eb58dca.tar.gz
kernel-qcow2-linux-e9144601d364d5b81f3e63949337f8507eb58dca.tar.xz
kernel-qcow2-linux-e9144601d364d5b81f3e63949337f8507eb58dca.zip
i7core_edac: move #if PAGE_SHIFT to edac_core.h
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/i7core_edac.c')
-rw-r--r--drivers/edac/i7core_edac.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index 5d15daaec8b8..36b4e1422838 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -666,11 +666,7 @@ static int get_dimm_config(const struct mem_ctl_info *mci, int *csrow)
RANKOFFSET(dimm_dod[j]),
banks, ranks, rows, cols);
-#if PAGE_SHIFT > 20
- npages = size >> (PAGE_SHIFT - 20);
-#else
- npages = size << (20 - PAGE_SHIFT);
-#endif
+ npages = MiB_TO_PAGES(size);
csr = &mci->csrows[*csrow];
csr->first_page = last_page + 1;