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.h | |
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.h')
-rw-r--r-- | sys/uvm/uvm.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/uvm/uvm.h b/sys/uvm/uvm.h index 9ee29c513d0..3efcf89044c 100644 --- a/sys/uvm/uvm.h +++ b/sys/uvm/uvm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm.h,v 1.31 2009/04/28 16:06:07 miod Exp $ */ +/* $OpenBSD: uvm.h,v 1.32 2009/05/04 18:08:06 oga Exp $ */ /* $NetBSD: uvm.h,v 1.24 2000/11/27 08:40:02 chs Exp $ */ /* @@ -87,13 +87,11 @@ struct uvm { boolean_t page_idle_zero; /* TRUE if we should try to zero pages in the idle loop */ - /* page daemon trigger */ - int pagedaemon; /* daemon sleeps on this */ - struct proc *pagedaemon_proc; /* daemon's pid */ + /* page daemon's pid, we sleep on the pointer to this. */ + struct proc *pagedaemon_proc; - /* aiodone daemon trigger */ - int aiodoned; /* daemon sleeps on this */ - struct proc *aiodoned_proc; /* daemon's pid */ + /* aiodone daemon's pid, we sleep on the pointer to this. */ + struct proc *aiodoned_proc; struct mutex aiodoned_lock; /* page hash */ |