X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sparc64%2Fpgalloc.h;h=e1b053882ae92e6c4dbf6969390df05f77d76478;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=fa5c704dedaf2555d3d2a5f94ce2f7ef0afec432;hpb=9bf4aaab3e101692164d49b7ca357651eb691cb6;p=linux-2.6.git diff --git a/include/asm-sparc64/pgalloc.h b/include/asm-sparc64/pgalloc.h index fa5c704de..e1b053882 100644 --- a/include/asm-sparc64/pgalloc.h +++ b/include/asm-sparc64/pgalloc.h @@ -73,10 +73,9 @@ static __inline__ pgd_t *get_pgd_fast(void) struct page *page; preempt_enable(); - page = alloc_page(GFP_KERNEL|__GFP_REPEAT); + page = alloc_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); if (page) { ret = (struct page *)page_address(page); - clear_page(ret); page->lru.prev = (void *) 2UL; preempt_disable(); @@ -134,7 +133,7 @@ static __inline__ void free_pgd_slow(pgd_t *pgd) #define DCACHE_COLOR(address) 0 #endif -#define pgd_populate(MM, PGD, PMD) pgd_set(PGD, PMD) +#define pud_populate(MM, PUD, PMD) pud_set(PUD, PMD) static __inline__ pmd_t *pmd_alloc_one_fast(struct mm_struct *mm, unsigned long address) {