Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137027
b: refs/heads/master
c: fd578f9
h: refs/heads/master
i:
  137025: 4e788dd
  137023: 83e284b
v: v3
  • Loading branch information
Pekka Enberg authored and Ingo Molnar committed Mar 3, 2009
1 parent 128f2ad commit b59ee59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 2b688dfd0a93cf3b17c38feef693361da47b0606
refs/heads/master: fd578f9c0a0a7bf3e460e6f21cdc6f4018949e80
8 changes: 4 additions & 4 deletions trunk/arch/x86/mm/init_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,10 +845,10 @@ static void __init find_early_table_space(unsigned long end, int use_pse)
unsigned long puds, pmds, ptes, tables, start;

puds = (end + PUD_SIZE - 1) >> PUD_SHIFT;
tables = PAGE_ALIGN(puds * sizeof(pud_t));
tables = roundup(puds * sizeof(pud_t), PAGE_SIZE);

pmds = (end + PMD_SIZE - 1) >> PMD_SHIFT;
tables += PAGE_ALIGN(pmds * sizeof(pmd_t));
tables += roundup(pmds * sizeof(pmd_t), PAGE_SIZE);

if (use_pse) {
unsigned long extra;
Expand All @@ -859,10 +859,10 @@ static void __init find_early_table_space(unsigned long end, int use_pse)
} else
ptes = (end + PAGE_SIZE - 1) >> PAGE_SHIFT;

tables += PAGE_ALIGN(ptes * sizeof(pte_t));
tables += roundup(ptes * sizeof(pte_t), PAGE_SIZE);

/* for fixmap */
tables += PAGE_ALIGN(__end_of_fixed_addresses * sizeof(pte_t));
tables += roundup(__end_of_fixed_addresses * sizeof(pte_t), PAGE_SIZE);

/*
* RED-PEN putting page tables only on node 0 could
Expand Down

0 comments on commit b59ee59

Please sign in to comment.