diff options
author | Yinghai Lu <[email protected]> | 2008-07-03 12:29:34 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2008-07-09 10:43:24 +0200 |
commit | 49c980df552499e5e8595b52448f612fdab0484a (patch) | |
tree | b938cf21da1e96ac09317de17b0b4551c9a9f0da | |
parent | b50efd2a55fc1344654875369d458bb6838bd37a (diff) |
x86: fix vmemmap printout check
Signed-off-by: Yinghai Lu <[email protected]>
Cc: "Nick Piggin" <[email protected]>
Cc: "Mark McLoughlin" <[email protected]>
Cc: xen-devel <[email protected]>
Cc: "Eduardo Habkost" <[email protected]>
Cc: "Vegard Nossum" <[email protected]>
Cc: "Stephen Tweedie" <[email protected]>
Cc: "Jeremy Fitzhardinge" <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | arch/x86/mm/init_64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 7227a0a3f3a0..f7d80313ede5 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -1104,9 +1104,6 @@ vmemmap_populate(struct page *start_page, unsigned long size, int node) PAGE_KERNEL_LARGE); set_pmd(pmd, __pmd(pte_val(entry))); - addr_end = addr + PMD_SIZE; - p_end = p + PMD_SIZE; - /* check to see if we have contiguous blocks */ if (p_end != p || node_start != node) { if (p_start) @@ -1116,6 +1113,9 @@ vmemmap_populate(struct page *start_page, unsigned long size, int node) node_start = node; p_start = p; } + + addr_end = addr + PMD_SIZE; + p_end = p + PMD_SIZE; } else vmemmap_verify((pte_t *)pmd, node, addr, next); } |