patch-2.1.115 linux/arch/arm/mm/init.c
Next file: linux/arch/i386/config.in
Previous file: linux/arch/arm/kernel/process.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Tue Aug 4 12:58:48 1998
- Orig file:
v2.1.114/linux/arch/arm/mm/init.c
- Orig date:
Fri May 8 23:14:42 1998
diff -u --recursive --new-file v2.1.114/linux/arch/arm/mm/init.c linux/arch/arm/mm/init.c
@@ -34,6 +34,22 @@
extern char _etext, _stext, _edata, __bss_start, _end;
extern char __init_begin, __init_end;
+int do_check_pgt_cache(int low, int high)
+{
+ int freed = 0;
+ if(pgtable_cache_size > high) {
+ do {
+ if(pgd_quicklist)
+ free_pgd_slow(get_pgd_fast()), freed++;
+ if(pmd_quicklist)
+ free_pmd_slow(get_pmd_fast()), freed++;
+ if(pte_quicklist)
+ free_pte_slow(get_pte_fast()), freed++;
+ } while(pgtable_cache_size > low);
+ }
+ return freed;
+}
+
/*
* BAD_PAGE is the page that is used for page faults when linux
* is out-of-memory. Older versions of linux just did a
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov