diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-05-04 18:08:07 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-05-04 18:08:07 +0000 |
commit | 15e67635223bfa6dc8052660a8dddf88bcbc0bf1 (patch) | |
tree | f8135cab7f6880c63c1f6000c8755bfee6b5b0fb /sys/uvm/uvm_pdaemon.c | |
parent | 3df519a362ecb2e7ff6fae720f2f0c76dbfaa46c (diff) |
Instead of keeping two ints in the uvm structure specifically just to
sleep on them (and otherwise ignore them) sleep on the pointer to the
{aiodoned,pagedaemon}_proc members, and nuke the two extra words.
"no objections" art@, ok beck@.
Diffstat (limited to 'sys/uvm/uvm_pdaemon.c')
-rw-r--r-- | sys/uvm/uvm_pdaemon.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/uvm/uvm_pdaemon.c b/sys/uvm/uvm_pdaemon.c index 499c28454ee..e5b88326899 100644 --- a/sys/uvm/uvm_pdaemon.c +++ b/sys/uvm/uvm_pdaemon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_pdaemon.c,v 1.42 2009/04/17 07:14:04 oga Exp $ */ +/* $OpenBSD: uvm_pdaemon.c,v 1.43 2009/05/04 18:08:06 oga Exp $ */ /* $NetBSD: uvm_pdaemon.c,v 1.23 2000/08/20 10:24:14 bjh21 Exp $ */ /* @@ -143,7 +143,7 @@ uvm_wait(const char *wmsg) } uvm_lock_fpageq(); - wakeup(&uvm.pagedaemon); /* wake the daemon! */ + wakeup(&uvm.pagedaemon_proc); /* wake the daemon! */ msleep(&uvmexp.free, &uvm.fpageqlock, PVM | PNORELOCK, wmsg, timo); } @@ -214,7 +214,7 @@ uvm_pageout(void *arg) for (;;) { uvm_lock_fpageq(); UVMHIST_LOG(pdhist," <<SLEEPING>>",0,0,0,0); - msleep(&uvm.pagedaemon, &uvm.fpageqlock, PVM | PNORELOCK, + msleep(&uvm.pagedaemon_proc, &uvm.fpageqlock, PVM | PNORELOCK, "pgdaemon", 0); uvmexp.pdwoke++; UVMHIST_LOG(pdhist," <<WOKE UP>>",0,0,0,0); @@ -288,7 +288,7 @@ uvm_aiodone_daemon(void *arg) */ mtx_enter(&uvm.aiodoned_lock); while ((bp = TAILQ_FIRST(&uvm.aio_done)) == NULL) - msleep(&uvm.aiodoned, &uvm.aiodoned_lock, + msleep(&uvm.aiodoned_proc, &uvm.aiodoned_lock, PVM, "aiodoned", 0); /* Take the list for ourselves. */ TAILQ_INIT(&uvm.aio_done); @@ -310,8 +310,8 @@ uvm_aiodone_daemon(void *arg) bp = nbp; } uvm_lock_fpageq(); - wakeup(free <= uvmexp.reserve_kernel ? &uvm.pagedaemon : - &uvmexp.free); + wakeup(free <= uvmexp.reserve_kernel ? + (void *)&uvm.pagedaemon_proc : (void *)&uvmexp.free); uvm_unlock_fpageq(); } } |