X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-m68k%2Fsun3_pgalloc.h;h=fd8241117649e978e320b4731cdc257c54c7f49c;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=3b7f6cc2d38c61ac4b9382db05456a32bf4fceaa;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-m68k/sun3_pgalloc.h b/include/asm-m68k/sun3_pgalloc.h index 3b7f6cc2d..fd8241117 100644 --- a/include/asm-m68k/sun3_pgalloc.h +++ b/include/asm-m68k/sun3_pgalloc.h @@ -1,5 +1,5 @@ /* sun3_pgalloc.h -- - * reorganization around 2.3.39, routines moved from sun3_pgtable.h + * reorganization around 2.3.39, routines moved from sun3_pgtable.h * * * 02/27/2002 -- Modified to support "highpte" implementation in 2.5.5 (Sam) @@ -31,31 +31,28 @@ static inline void pte_free(struct page *page) __free_page(page); } -static inline void __pte_free_tlb(struct mmu_gather *tlb, struct page *page) -{ - tlb_remove_page(tlb, page); -} +#define __pte_free_tlb(tlb,pte) tlb_remove_page((tlb),(pte)) -static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, +static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) { unsigned long page = __get_free_page(GFP_KERNEL|__GFP_REPEAT); if (!page) return NULL; - + memset((void *)page, 0, PAGE_SIZE); return (pte_t *) (page); } -static inline struct page *pte_alloc_one(struct mm_struct *mm, +static inline struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) { struct page *page = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0); if (page == NULL) return NULL; - + clear_highpage(page); return page;