diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2019-07-18 23:47:34 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2019-07-18 23:47:34 +0000 |
commit | 6a385aadadf1329ed633f2ef7f4eedee97273970 (patch) | |
tree | 18ffaeabc23c33c75a4e2f8d9324f3824e6d159f /sys/uvm/uvm.h | |
parent | 1e706236e351d6095f7201b6454c0aa3b0f83715 (diff) |
R.I.P. UVM_WAIT(). Use tsleep_nsec(9) directly.
UVM_WAIT() doesn't provide much of a useful abstraction. All callers
tsleep forever and no callers set PCATCH, so only 2 of 4 parameters are
actually used. Might as well just use tsleep_nsec(9) directly and make
the uvm code a bit less specialized.
Suggested by mpi@.
ok mpi@ visa@ millert@
Diffstat (limited to 'sys/uvm/uvm.h')
-rw-r--r-- | sys/uvm/uvm.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/uvm/uvm.h b/sys/uvm/uvm.h index c895eb5ea1d..a2147155523 100644 --- a/sys/uvm/uvm.h +++ b/sys/uvm/uvm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm.h,v 1.64 2019/03/01 01:46:18 cheloha Exp $ */ +/* $OpenBSD: uvm.h,v 1.65 2019/07/18 23:47:33 cheloha Exp $ */ /* $NetBSD: uvm.h,v 1.24 2000/11/27 08:40:02 chs Exp $ */ /* @@ -111,15 +111,6 @@ struct uvm { extern struct uvm uvm; /* - * UVM_WAIT: wait... wrapper around the tsleep() function. - */ - -#define UVM_WAIT(event, intr, msg, timo) \ -do { \ - tsleep(event, PVM|(intr ? PCATCH : 0), msg, timo); \ -} while (0) - -/* * UVM_PAGE_OWN: track page ownership (only if UVM_PAGE_TRKOWN) */ |