diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-04-17 01:25:23 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-04-17 01:25:23 +0000 |
commit | 88b359233160997d773bfca12d4654247062701d (patch) | |
tree | 54f9173892d3b02700bcb5bd04f403869b91a844 /sys/vm/vm_extern.h | |
parent | 823c29b4663430510be1e46e888f930ca96a9ab4 (diff) |
Removal of race conditions. Inspired by Charles Hannum's
<mycroft@netbsd.org> reorganization of the vm_collapse logic, although not
used verbatim. We no longer collapse objects from the pagedaemon as that
is not necessary anymore with the more aggressive collapses that gets done.
This also increases performance of loaded systems. Much KNF too.
Diffstat (limited to 'sys/vm/vm_extern.h')
-rw-r--r-- | sys/vm/vm_extern.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h index 14346cb8a05..964adb26dec 100644 --- a/sys/vm/vm_extern.h +++ b/sys/vm/vm_extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_extern.h,v 1.9 1997/01/07 05:37:35 tholo Exp $ */ +/* $OpenBSD: vm_extern.h,v 1.10 1997/04/17 01:25:17 niklas Exp $ */ /* $NetBSD: vm_extern.h,v 1.20 1996/04/23 12:25:23 christos Exp $ */ /*- @@ -98,7 +98,13 @@ void swapout_threads __P((void)); int swfree __P((struct proc *, int)); void swstrategy __P((struct buf *)); void thread_block __P((void)); -void thread_sleep __P((void *, simple_lock_t, boolean_t)); +void thread_sleep_msg __P((void *, simple_lock_t, + boolean_t, char *)); + +/* backwards compatibility */ +#define thread_sleep(event, lock, ruptible) \ + thread_sleep_msg((event), (lock), (ruptible), "thrd_sleep") + /* * This define replaces a thread_wakeup prototype, as thread_wakeup * was solely a wrapper around wakeup. @@ -145,7 +151,6 @@ int vsunlock __P((caddr_t, u_int)); /* Machine dependent portion */ void vmapbuf __P((struct buf *, vm_size_t)); void vunmapbuf __P((struct buf *, vm_size_t)); -void remrq __P((struct proc *)); void pagemove __P((caddr_t, caddr_t, size_t)); #ifdef __FORK_BRAINDAMAGE int cpu_fork __P((struct proc *, struct proc *)); |