From 15e67635223bfa6dc8052660a8dddf88bcbc0bf1 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Mon, 4 May 2009 18:08:07 +0000 Subject: 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@. --- sys/uvm/uvm.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sys/uvm/uvm.h') 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 */ -- cgit v1.2.3