aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2002-11-13 05:39:58 +0000
committerAlan Cox <alc@FreeBSD.org>2002-11-13 05:39:58 +0000
commiteea85e9bb62e3b613103466055df9de9d0445ee9 (patch)
treee422808e35d14010cfbd0e3bec778fcc4bba8771 /sys/alpha
parentc3e6b1182b12c7c159a1999823e8ceebb43917c8 (diff)
Notes
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/pmap.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c
index 5451a00fc7af..24d6a0a3667b 100644
--- a/sys/alpha/alpha/pmap.c
+++ b/sys/alpha/alpha/pmap.c
@@ -323,7 +323,7 @@ static struct mtx allpmaps_lock;
*/
static uma_zone_t pvzone;
static int pv_entry_count = 0, pv_entry_max = 0, pv_entry_high_water = 0;
-static int pmap_pagedaemon_waken = 0;
+int pmap_pagedaemon_waken;
static PMAP_INLINE void free_pv_entry(pv_entry_t pv);
static pv_entry_t get_pv_entry(void);
@@ -1724,36 +1724,6 @@ get_pv_entry(void)
}
/*
- * This routine is very drastic, but can save the system
- * in a pinch.
- */
-void
-pmap_collect()
-{
- int i;
- vm_page_t m;
- static int warningdone = 0;
-
- if (pmap_pagedaemon_waken == 0)
- return;
-
- if (warningdone < 5) {
- printf("pmap_collect: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC\n");
- warningdone++;
- }
-
- for(i = 0; i < vm_page_array_size; i++) {
- m = &vm_page_array[i];
- if (m->wire_count || m->hold_count || m->busy ||
- (m->flags & (PG_BUSY | PG_UNMANAGED)))
- continue;
- pmap_remove_all(m);
- }
- pmap_pagedaemon_waken = 0;
-}
-
-
-/*
* If it is the first entry on the list, it is actually
* in the header and we must copy the following entry up
* to the header. Otherwise we must search the list for