Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117953
b: refs/heads/master
c: 3afa394
h: refs/heads/master
i:
  117951: 3a62ebb
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 27, 2008
1 parent e24eebd commit baa0ada
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef020ab0109aa5cd6eac2e93519b7641c9862828
refs/heads/master: 3afa39493de510c33c56ddc76e6e1af7f87c5392
12 changes: 9 additions & 3 deletions trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,10 @@ phys_pte_init(pte_t *pte_page, unsigned long addr, unsigned long end,
* pagetable pages as RO. So assume someone who pre-setup
* these mappings are more intelligent.
*/
if (pte_val(*pte))
if (pte_val(*pte)) {
pages++;
continue;
}

if (0)
printk(" pte=%p addr=%lx pte=%016lx\n",
Expand Down Expand Up @@ -418,8 +420,10 @@ phys_pmd_init(pmd_t *pmd_page, unsigned long address, unsigned long end,
* not differ with respect to page frame and
* attributes.
*/
if (page_size_mask & (1 << PG_LEVEL_2M))
if (page_size_mask & (1 << PG_LEVEL_2M)) {
pages++;
continue;
}
new_prot = pte_pgprot(pte_clrhuge(*(pte_t *)pmd));
}

Expand Down Expand Up @@ -499,8 +503,10 @@ phys_pud_init(pud_t *pud_page, unsigned long addr, unsigned long end,
* not differ with respect to page frame and
* attributes.
*/
if (page_size_mask & (1 << PG_LEVEL_1G))
if (page_size_mask & (1 << PG_LEVEL_1G)) {
pages++;
continue;
}
prot = pte_pgprot(pte_clrhuge(*(pte_t *)pud));
}

Expand Down

0 comments on commit baa0ada

Please sign in to comment.