diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-10-25 18:45:26 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-10-25 18:45:45 -0400 |
commit | f82f64dd9f485e13f29f369772d4a0e868e5633a (patch) | |
tree | 3d5151661ee3066da751bff755980b90f60acf0d /arch/x86 | |
parent | 844ab6f993b1d32eb40512503d35ff6ad0c57030 (diff) |
x86, mm: Undo incorrect revert in arch/x86/mm/init.c
Commit
844ab6f9 x86, mm: Find_early_table_space based on ranges that are actually being mapped
added back some lines back wrongly that has been removed in commit
7b16bbf97 Revert "x86/mm: Fix the size calculation of mapping tables"
remove them again.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/CAE9FiQW_vuaYQbmagVnxT2DGsYc=9tNeAbdBq53sYkitPOwxSQ@mail.gmail.com
Acked-by: Jacob Shin <jacob.shin@amd.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/mm/init.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index bc287d62bf1e..d7aea41563b3 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c | |||
@@ -65,10 +65,6 @@ static void __init find_early_table_space(struct map_range *mr, int nr_range) | |||
65 | #ifdef CONFIG_X86_32 | 65 | #ifdef CONFIG_X86_32 |
66 | extra += PMD_SIZE; | 66 | extra += PMD_SIZE; |
67 | #endif | 67 | #endif |
68 | /* The first 2/4M doesn't use large pages. */ | ||
69 | if (mr[i].start < PMD_SIZE) | ||
70 | extra += range; | ||
71 | |||
72 | ptes += (extra + PAGE_SIZE - 1) >> PAGE_SHIFT; | 68 | ptes += (extra + PAGE_SIZE - 1) >> PAGE_SHIFT; |
73 | } else { | 69 | } else { |
74 | ptes += (range + PAGE_SIZE - 1) >> PAGE_SHIFT; | 70 | ptes += (range + PAGE_SIZE - 1) >> PAGE_SHIFT; |