summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pageout.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-11-28 23:15:07 +0000
committerdyson <dyson@FreeBSD.org>1996-11-28 23:15:07 +0000
commitf573ad0ab20bbee180db8815f148fc357a613915 (patch)
tree354ebdb4713949ffc413eb85282ebd836e32f1ac /sys/vm/vm_pageout.c
parenta28111b089eb611a4c68bf4662eaa66b21032450 (diff)
downloadFreeBSD-src-f573ad0ab20bbee180db8815f148fc357a613915.zip
FreeBSD-src-f573ad0ab20bbee180db8815f148fc357a613915.tar.gz
Make the kernel smaller with at worst a neutral effect on perf by
de-inlining some VM calls. (Actually, I measured a small improvement.)
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r--sys/vm/vm_pageout.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 3e9ef33..8b20f09 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -65,7 +65,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_pageout.c,v 1.85 1996/09/08 20:44:48 dyson Exp $
+ * $Id: vm_pageout.c,v 1.86 1996/09/28 03:33:40 dyson Exp $
*/
/*
@@ -1015,6 +1015,15 @@ vm_pageout()
}
}
+void
+pagedaemon_wakeup()
+{
+ if (!vm_pages_needed && curproc != pageproc) {
+ vm_pages_needed++;
+ wakeup(&vm_pages_needed);
+ }
+}
+
#if !defined(NO_SWAPPING)
static void
vm_req_vmdaemon()
OpenPOWER on IntegriCloud