patch-2.4.25 linux-2.4.25/include/asm-mips64/pgalloc.h
Next file: linux-2.4.25/include/asm-mips64/pgtable.h
Previous file: linux-2.4.25/include/asm-mips64/param.h
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
2004-02-18 05:36:32.000000000 -0800
- Orig file:
linux-2.4.24/include/asm-mips64/pgalloc.h
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.24/include/asm-mips64/pgalloc.h linux-2.4.25/include/asm-mips64/pgalloc.h
@@ -18,6 +18,7 @@
* - flush_tlb_page(mm, vmaddr) flushes a single page
* - flush_tlb_range(mm, start, end) flushes a range of pages
* - flush_tlb_pgtables(mm, start, end) flushes a range of page tables
+ * - flush_tlb_one(page) flushes a single kernel page
*/
extern void local_flush_tlb_all(void);
extern void local_flush_tlb_mm(struct mm_struct *mm);
@@ -25,6 +26,7 @@
unsigned long end);
extern void local_flush_tlb_page(struct vm_area_struct *vma,
unsigned long page);
+extern void local_flush_tlb_one(unsigned long page);
#ifdef CONFIG_SMP
@@ -87,14 +89,14 @@
static inline void free_pgd_slow(pgd_t *pgd)
{
- free_pages((unsigned long)pgd, 1);
+ free_pages((unsigned long)pgd, PGD_ORDER);
}
static inline pte_t *pte_alloc_one(struct mm_struct *mm, unsigned long address)
{
pte_t *pte;
- pte = (pte_t *) __get_free_page(GFP_KERNEL);
+ pte = (pte_t *) __get_free_pages(GFP_KERNEL, PTE_ORDER);
if (pte)
clear_page(pte);
return pte;
@@ -135,14 +137,14 @@
static inline void free_pte_slow(pte_t *pte)
{
- free_pages((unsigned long)pte, 0);
+ free_pages((unsigned long)pte, PTE_ORDER);
}
static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
{
pmd_t *pmd;
- pmd = (pmd_t *) __get_free_pages(GFP_KERNEL, 1);
+ pmd = (pmd_t *) __get_free_pages(GFP_KERNEL, PMD_ORDER);
if (pmd)
pmd_init((unsigned long)pmd, (unsigned long)invalid_pte_table);
return pmd;
@@ -185,7 +187,7 @@
static inline void free_pmd_slow(pmd_t *pmd)
{
- free_pages((unsigned long)pmd, 1);
+ free_pages((unsigned long)pmd, PMD_ORDER);
}
#define pte_free(pte) free_pte_fast(pte)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)