]> git.neil.brown.name Git - history.git/commitdiff
Add back check_pgt_cache call.
authorDavid S. Miller <davem@nuts.ninka.net>
Sun, 10 Mar 2002 23:34:53 +0000 (15:34 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 10 Mar 2002 23:34:53 +0000 (15:34 -0800)
Add nop definition for x86.

include/asm-i386/pgalloc.h
mm/memory.c

index cf81870ff17ccfa0495dc2e7b1bf610c607b4967..0af21645a1f1ecff0347e4e2b05e3e4b806675fd 100644 (file)
@@ -223,4 +223,6 @@ static inline void flush_tlb_pgtables(struct mm_struct *mm,
        /* i386 does not keep any page table caches in TLB */
 }
 
+#define check_pgt_cache()      do { } while (0)
+
 #endif /* _I386_PGALLOC_H */
index 3a7a1a7a72e53b1fe6f42ffc6c12dfc9d056268f..34f125c8f04373b2509fa575f1df0919ad2adba0 100644 (file)
@@ -140,6 +140,9 @@ void clear_page_tables(struct mm_struct *mm, unsigned long first, int nr)
                page_dir++;
        } while (--nr);
        spin_unlock(&mm->page_table_lock);
+
+       /* keep the page table cache within bounds */
+       check_pgt_cache();
 }
 
 pte_t * pte_alloc_map(struct mm_struct *mm, pmd_t *pmd, unsigned long address)