summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-06-11 04:53:06 +0000
committeralc <alc@FreeBSD.org>2006-06-11 04:53:06 +0000
commitc282bd28da5e6b1d0be4c13daa8742d001102a68 (patch)
treeff24027d7ac098323abc05c1173192bb84985a5a /sys
parent2047f3b7e71ac86b1022498405846b4c3d26816b (diff)
downloadFreeBSD-src-c282bd28da5e6b1d0be4c13daa8742d001102a68.zip
FreeBSD-src-c282bd28da5e6b1d0be4c13daa8742d001102a68.tar.gz
Remove pmap_pagedaemon_waken and update pmap_get_pv_entry() to match the
current interface with the machine-independent layer. Without this change, the page daemon would only have been awakened the first time that the number of pv entries went above the high water mark, not each time.
Diffstat (limited to 'sys')
-rw-r--r--sys/arm/arm/pmap.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c
index b1a6d38..2d03111 100644
--- a/sys/arm/arm/pmap.c
+++ b/sys/arm/arm/pmap.c
@@ -413,7 +413,6 @@ static vm_offset_t pmap_kernel_l2ptp_kva;
static vm_paddr_t pmap_kernel_l2ptp_phys;
static struct vm_object pvzone_obj;
static int pv_entry_count=0, pv_entry_max=0, pv_entry_high_water=0;
-int pmap_pagedaemon_waken = 0;
/*
* This list exists for the benefit of pmap_map_chunk(). It keeps track
@@ -3814,11 +3813,8 @@ pmap_get_pv_entry(void)
pv_entry_t ret_value;
pv_entry_count++;
- if ((pv_entry_count > pv_entry_high_water) &&
- (pmap_pagedaemon_waken == 0)) {
- pmap_pagedaemon_waken = 1;
- wakeup (&vm_pages_needed);
- }
+ if (pv_entry_count > pv_entry_high_water)
+ pagedaemon_wakeup();
ret_value = uma_zalloc(pvzone, M_NOWAIT);
return ret_value;
}
OpenPOWER on IntegriCloud