diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-03 21:40:11 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-03 21:40:11 +0000 |
commit | 9b7c8f2825fe96bbbc28e5db0bd593ed3aaaf333 (patch) | |
tree | 0814376f3ec9325f8fbb432d6b0c1a25f62c46bb /sys/uvm/uvm_extern.h | |
parent | 4504cd982a1daa793107c70f1265768892ebef81 (diff) |
add a uvm_yield function and use it in the reaper path to prevent the
reaper from hogging the cpu. it will do the kernel lock twiddle trick to
allow other CPUs a chance to run, and also checks if the reaper has been
running for an entire timeslice and should be preempted.
ok deraadt
Diffstat (limited to 'sys/uvm/uvm_extern.h')
-rw-r--r-- | sys/uvm/uvm_extern.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h index 9a49d2d3043..06919d70979 100644 --- a/sys/uvm/uvm_extern.h +++ b/sys/uvm/uvm_extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_extern.h,v 1.111 2014/03/28 17:57:11 mpi Exp $ */ +/* $OpenBSD: uvm_extern.h,v 1.112 2014/04/03 21:40:10 tedu Exp $ */ /* $NetBSD: uvm_extern.h,v 1.57 2001/03/09 01:02:12 chs Exp $ */ /* @@ -527,6 +527,7 @@ int uvm_vslock_device(struct proc *, void *, size_t, vm_prot_t, void **); void uvm_vsunlock_device(struct proc *, void *, size_t, void *); +void uvm_pause(void); /* uvm_init.c */ |