diff options
Diffstat (limited to 'arch/x86/mm/init.c')
| -rw-r--r-- | arch/x86/mm/init.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index f53b57e4086f..0607119cef94 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <asm/system.h> | 12 | #include <asm/system.h> |
| 13 | #include <asm/tlbflush.h> | 13 | #include <asm/tlbflush.h> |
| 14 | #include <asm/tlb.h> | 14 | #include <asm/tlb.h> |
| 15 | #include <asm/proto.h> | ||
| 15 | 16 | ||
| 16 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); | 17 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); |
| 17 | 18 | ||
| @@ -177,20 +178,6 @@ static int __meminit save_mr(struct map_range *mr, int nr_range, | |||
| 177 | return nr_range; | 178 | return nr_range; |
| 178 | } | 179 | } |
| 179 | 180 | ||
| 180 | #ifdef CONFIG_X86_64 | ||
| 181 | static void __init init_gbpages(void) | ||
| 182 | { | ||
| 183 | if (direct_gbpages && cpu_has_gbpages) | ||
| 184 | printk(KERN_INFO "Using GB pages for direct mapping\n"); | ||
| 185 | else | ||
| 186 | direct_gbpages = 0; | ||
| 187 | } | ||
| 188 | #else | ||
| 189 | static inline void init_gbpages(void) | ||
| 190 | { | ||
| 191 | } | ||
| 192 | #endif | ||
| 193 | |||
| 194 | /* | 181 | /* |
| 195 | * Setup the direct mapping of the physical memory at PAGE_OFFSET. | 182 | * Setup the direct mapping of the physical memory at PAGE_OFFSET. |
| 196 | * This runs before bootmem is initialized and gets pages directly from | 183 | * This runs before bootmem is initialized and gets pages directly from |
| @@ -210,9 +197,6 @@ unsigned long __init_refok init_memory_mapping(unsigned long start, | |||
| 210 | 197 | ||
| 211 | printk(KERN_INFO "init_memory_mapping: %016lx-%016lx\n", start, end); | 198 | printk(KERN_INFO "init_memory_mapping: %016lx-%016lx\n", start, end); |
| 212 | 199 | ||
| 213 | if (!after_bootmem) | ||
| 214 | init_gbpages(); | ||
| 215 | |||
| 216 | #if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_KMEMCHECK) | 200 | #if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_KMEMCHECK) |
| 217 | /* | 201 | /* |
| 218 | * For CONFIG_DEBUG_PAGEALLOC, identity mapping will use small pages. | 202 | * For CONFIG_DEBUG_PAGEALLOC, identity mapping will use small pages. |
