vserver 2.0 rc7
[linux-2.6.git] / include / asm-s390 / pgalloc.h
index 9030813..3417dd7 100644 (file)
@@ -14,7 +14,6 @@
 #define _S390_PGALLOC_H
 
 #include <linux/config.h>
-#include <asm/processor.h>
 #include <linux/threads.h>
 #include <linux/gfp.h>
 #include <linux/mm.h>
@@ -130,8 +129,10 @@ pte_alloc_one_kernel(struct mm_struct *mm, unsigned long vmaddr)
 
        pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT);
        if (pte != NULL) {
-               for (i=0; i < PTRS_PER_PTE; i++)
-                       pte_clear(pte+i);
+               for (i=0; i < PTRS_PER_PTE; i++) {
+                       pte_clear(mm, vmaddr, pte+i);
+                       vmaddr += PAGE_SIZE;
+               }
        }
        return pte;
 }