aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2010-04-03 13:58:45 -0700
committerDavid S. Miller <davem@davemloft.net>2010-04-03 13:58:45 -0700
commit33cd9dfa3a13e3d8e41aef225a9f98169816723b (patch)
treea43e894b476b26fba3ca26d41a701998b27bf0f5 /arch/sparc/mm
parentb857bd292223f54aaae3693c82fa7299a99991cd (diff)
downloadkernel_samsung_smdk4412-33cd9dfa3a13e3d8e41aef225a9f98169816723b.tar.gz
kernel_samsung_smdk4412-33cd9dfa3a13e3d8e41aef225a9f98169816723b.tar.bz2
kernel_samsung_smdk4412-33cd9dfa3a13e3d8e41aef225a9f98169816723b.zip
sparc64: Fix array size reported by vmemmap_populate()
vmemmap_populate() attempts to report the used index and total size of vmemmap_table, but it wrongly shifts the total size so that it is always shown as 0. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm')
-rw-r--r--arch/sparc/mm/init_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c
index 9245a822a2f..20beb806a53 100644
--- a/arch/sparc/mm/init_64.c
+++ b/arch/sparc/mm/init_64.c
@@ -2117,7 +2117,7 @@ int __meminit vmemmap_populate(struct page *start, unsigned long nr, int node)
"node=%d entry=%lu/%lu\n", start, block, nr,
node,
addr >> VMEMMAP_CHUNK_SHIFT,
- VMEMMAP_SIZE >> VMEMMAP_CHUNK_SHIFT);
+ VMEMMAP_SIZE);
}
}
return 0;