BUILTIN -> REMOVED : CONFIG_UTRACE
[linux-2.6.git] / include / asm-m68k / motorola_pgalloc.h
index f315615..5158412 100644 (file)
@@ -2,6 +2,7 @@
 #define _MOTOROLA_PGALLOC_H
 
 #include <asm/tlb.h>
+#include <asm/tlbflush.h>
 
 extern pmd_t *get_pointer_table(void);
 extern int free_pointer_table(pmd_t *);
@@ -11,9 +12,8 @@ static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long ad
 {
        pte_t *pte;
 
-       pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT);
+       pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO);
        if (pte) {
-               clear_page(pte);
                __flush_page_to_ram(pte);
                flush_tlb_kernel_page(pte);
                nocache_page(pte);
@@ -30,7 +30,7 @@ static inline void pte_free_kernel(pte_t *pte)
 
 static inline struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address)
 {
-       struct page *page = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0);
+       struct page *page = alloc_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 0);
        pte_t *pte;
 
        if(!page)
@@ -38,7 +38,6 @@ static inline struct page *pte_alloc_one(struct mm_struct *mm, unsigned long add
 
        pte = kmap(page);
        if (pte) {
-               clear_page(pte);
                __flush_page_to_ram(pte);
                flush_tlb_kernel_page(pte);
                nocache_page(pte);