diff options
Diffstat (limited to 'arch/nios2/include/asm/pgalloc.h')
| -rw-r--r-- | arch/nios2/include/asm/pgalloc.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/nios2/include/asm/pgalloc.h b/arch/nios2/include/asm/pgalloc.h index 6e2985e0a7b9..bb47d08c8ef7 100644 --- a/arch/nios2/include/asm/pgalloc.h +++ b/arch/nios2/include/asm/pgalloc.h | |||
| @@ -42,8 +42,7 @@ static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, | |||
| 42 | { | 42 | { |
| 43 | pte_t *pte; | 43 | pte_t *pte; |
| 44 | 44 | ||
| 45 | pte = (pte_t *) __get_free_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, | 45 | pte = (pte_t *) __get_free_pages(GFP_KERNEL|__GFP_ZERO, PTE_ORDER); |
| 46 | PTE_ORDER); | ||
| 47 | 46 | ||
| 48 | return pte; | 47 | return pte; |
| 49 | } | 48 | } |
| @@ -53,7 +52,7 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm, | |||
| 53 | { | 52 | { |
| 54 | struct page *pte; | 53 | struct page *pte; |
| 55 | 54 | ||
| 56 | pte = alloc_pages(GFP_KERNEL | __GFP_REPEAT, PTE_ORDER); | 55 | pte = alloc_pages(GFP_KERNEL, PTE_ORDER); |
| 57 | if (pte) { | 56 | if (pte) { |
| 58 | if (!pgtable_page_ctor(pte)) { | 57 | if (!pgtable_page_ctor(pte)) { |
| 59 | __free_page(pte); | 58 | __free_page(pte); |
