|
@@ -1113,7 +1113,7 @@ static void __init xen_cleanhighmap(unsigned long vaddr,
|
|
|
|
|
|
/* NOTE: The loop is more greedy than the cleanup_highmap variant.
|
|
/* NOTE: The loop is more greedy than the cleanup_highmap variant.
|
|
* We include the PMD passed in on _both_ boundaries. */
|
|
* We include the PMD passed in on _both_ boundaries. */
|
|
- for (; vaddr <= vaddr_end && (pmd < (level2_kernel_pgt + PAGE_SIZE));
|
|
|
|
|
|
+ for (; vaddr <= vaddr_end && (pmd < (level2_kernel_pgt + PTRS_PER_PMD));
|
|
pmd++, vaddr += PMD_SIZE) {
|
|
pmd++, vaddr += PMD_SIZE) {
|
|
if (pmd_none(*pmd))
|
|
if (pmd_none(*pmd))
|
|
continue;
|
|
continue;
|