From: Kenn H. <ke...@us...> - 2002-12-02 00:00:26
|
Update of /cvsroot/linux-vax/kernel-2.5/arch/vax/mm In directory sc8-pr-cvs1:/tmp/cvs-serv9359 Modified Files: init.c Log Message: 2.5.5 no longer maintains lookaside lists for page table pages. Index: init.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/mm/init.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- init.c 31 May 2002 01:58:38 -0000 1.5 +++ init.c 2 Dec 2002 00:00:23 -0000 1.6 @@ -24,9 +24,7 @@ pte_t *pg0; -#ifndef CONFIG_SMP -struct pgtable_cache_struct quicklists; -#endif +struct pgd_cache pgd_free_list; @@ -86,9 +84,6 @@ flush_tlb(); printk("VAXMM: system page table base %8lx, length (bytes) %8lx length (ptes) %8lx\n",SPT_BASE,SPT_SIZE,SPT_LEN); - - /* clear the quicklists structure */ - memset(&quicklists,0,sizeof(quicklists)); } #if DEBUG_POISON @@ -173,7 +168,7 @@ printk("%ld reserved pages\n",reserved); printk("%ld pages shared\n",shared); printk("%ld pages swap cached\n",cached); - printk("%ld pages in page table cache\n",pgtable_cache_size); + printk("%ld pages in PGD cache\n",pgd_free_list.size); show_buffers(); } @@ -202,31 +197,5 @@ val->freehigh = 0; val->mem_unit = PAGE_SIZE; return; -} - -/* - * atp Mar 2002. - * The pmd cache is now separate, as it is a two page block of - * memory. ptes are 1 page. I'd like to separate the pmd from the - * pgtable_cache_sz. Later. - */ -int do_check_pgt_cache(int low, int high) -{ - int freed = 0; - - if(pgtable_cache_size > high) { - do { -// if(pmd_quicklist) { -// free_pmd_slow(pmd_alloc_one_fast(NULL, 0)); -// freed++; -// freed++; /* a two page block */ -// } - if(pte_quicklist){ - free_pte_slow(pte_alloc_one_fast(NULL,0)); - freed++; - } - } while(pgtable_cache_size > low); - } - return freed; } |