X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-mips%2Fpgalloc.h;fp=include%2Fasm-mips%2Fpgalloc.h;h=2d63f5ba403fe24b6568ff73a21b856a50ed62d8;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=4f96427f89f405e1e614c8d4ffc2f2e95fa3aae7;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-mips/pgalloc.h b/include/asm-mips/pgalloc.h index 4f96427f8..2d63f5ba4 100644 --- a/include/asm-mips/pgalloc.h +++ b/include/asm-mips/pgalloc.h @@ -56,9 +56,7 @@ static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, { pte_t *pte; - pte = (pte_t *) __get_free_pages(GFP_KERNEL|__GFP_REPEAT, PTE_ORDER); - if (pte) - clear_page(pte); + pte = (pte_t *) __get_free_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, PTE_ORDER); return pte; }