diff options
-rw-r--r-- | sys/uvm/uvm_extern.h | 3 | ||||
-rw-r--r-- | sys/uvm/uvm_glue.c | 16 |
2 files changed, 2 insertions, 17 deletions
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h index 3bbd15047cb..0191372ee11 100644 --- a/sys/uvm/uvm_extern.h +++ b/sys/uvm/uvm_extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_extern.h,v 1.177 2024/08/24 10:46:43 mpi Exp $ */ +/* $OpenBSD: uvm_extern.h,v 1.178 2024/10/08 02:29:10 jsg Exp $ */ /* $NetBSD: uvm_extern.h,v 1.57 2001/03/09 01:02:12 chs Exp $ */ /* @@ -280,7 +280,6 @@ 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); void uvm_init(void); void uvm_init_percpu(void); int uvm_io(vm_map_t, struct uio *, int); diff --git a/sys/uvm/uvm_glue.c b/sys/uvm/uvm_glue.c index 9c45bfdb767..2d1a6b08fe4 100644 --- a/sys/uvm/uvm_glue.c +++ b/sys/uvm/uvm_glue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_glue.c,v 1.84 2022/09/10 20:35:29 miod Exp $ */ +/* $OpenBSD: uvm_glue.c,v 1.85 2024/10/08 02:29:10 jsg Exp $ */ /* $NetBSD: uvm_glue.c,v 1.44 2001/02/06 19:54:44 eeh Exp $ */ /* @@ -71,11 +71,9 @@ #include <sys/proc.h> #include <sys/resourcevar.h> #include <sys/buf.h> -#include <sys/user.h> #ifdef SYSVSHM #include <sys/shm.h> #endif -#include <sys/sched.h> #include <uvm/uvm.h> @@ -435,18 +433,6 @@ uvm_atopg(vaddr_t kva) return (pg); } -void -uvm_pause(void) -{ - static unsigned int toggle; - if (toggle++ > 128) { - toggle = 0; - KERNEL_UNLOCK(); - KERNEL_LOCK(); - } - sched_pause(preempt); -} - #ifndef SMALL_KERNEL int fill_vmmap(struct process *pr, struct kinfo_vmentry *kve, |