patch-2.4.10 linux/include/asm-i386/pgalloc.h
Next file: linux/include/asm-i386/processor.h
Previous file: linux/include/asm-i386/page.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sun Sep 23 10:31:02 2001
- Orig file:
v2.4.9/linux/include/asm-i386/pgalloc.h
- Orig date:
Sun Aug 12 13:28:00 2001
diff -u --recursive --new-file v2.4.9/linux/include/asm-i386/pgalloc.h linux/include/asm-i386/pgalloc.h
@@ -128,9 +128,14 @@
free_page((unsigned long)pte);
}
-#define pte_free(pte) pte_free_slow(pte)
+#define pte_free(pte) pte_free_fast(pte)
+#ifdef CONFIG_X86_PAE
+#define pgd_alloc(mm) get_pgd_slow()
#define pgd_free(pgd) free_pgd_slow(pgd)
+#else
#define pgd_alloc(mm) get_pgd_fast()
+#define pgd_free(pgd) free_pgd_fast(pgd)
+#endif
/*
* allocating and freeing a pmd is trivial: the 1-entry pmd is
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)