diff options
Diffstat (limited to 'arch/x86/mm/pgtable.c')
| -rw-r--r-- | arch/x86/mm/pgtable.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c index 96d456a94b03..004abf9ebf12 100644 --- a/arch/x86/mm/pgtable.c +++ b/arch/x86/mm/pgtable.c @@ -355,14 +355,15 @@ static inline void _pgd_free(pgd_t *pgd)  		kmem_cache_free(pgd_cache, pgd);  }  #else +  static inline pgd_t *_pgd_alloc(void)  { -	return (pgd_t *)__get_free_page(PGALLOC_GFP); +	return (pgd_t *)__get_free_pages(PGALLOC_GFP, PGD_ALLOCATION_ORDER);  }  static inline void _pgd_free(pgd_t *pgd)  { -	free_page((unsigned long)pgd); +	free_pages((unsigned long)pgd, PGD_ALLOCATION_ORDER);  }  #endif /* CONFIG_X86_PAE */  | 

